Metadata-Version: 2.1
Name: fundosbr
Version: 0.1.1
Summary: Script para mostrar dados de fundos de investimento.
Home-page: https://github.com/thobiast/fundosbr
Author: Thobias Salazar Trevisan
License: MIT
Platform: UNKNOWN
Classifier: License :: OSI Approved :: MIT License
Classifier: Environment :: Console
Classifier: Topic :: Software Development
Classifier: Topic :: Terminals
Classifier: Topic :: Utilities
Classifier: Programming Language :: Python :: 3
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: System Administrators
Classifier: Operating System :: OS Independent
Description-Content-Type: text/markdown
Requires-Dist: requests
Requires-Dist: pandas

# fundosbr - Mostra informações sobre fundos de investimentos brasileiros

![build](https://github.com/thobiast/fundosbr/workflows/build/badge.svg)
![PyPI - Python Version](https://img.shields.io/pypi/pyversions/fundosbr)
[![codecov](https://codecov.io/gh/thobiast/fundosbr/branch/main/graph/badge.svg)](https://codecov.io/gh/thobiast/fundosbr)
[![GitHub License](https://img.shields.io/github/license/thobiast/fundosbr)](https://github.com/thobiast/fundosbr/blob/main/LICENSE)
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)

Script que baixa informações direto do site da CVM e mostra detalhes dos fundos de investimento.

## Instalação

```bash
pip install fundosbr
```

Os arquivos _csv_ baixados do site da CVM são armazenados no diretório _/tmp/fundosbr\_dados_.
Se quiser alterar, edite o arquivo "_fundosbr.py_" e modifique a variável "_CSV\_FILES\_DIR_".

## Ajuda

```bash
user@localhost: ~$ fundosbr
usage: fundosbr [-h] [-d] {busca,informe,compara,rank} ...

Informacoes sobre fundos de investimentos

optional arguments:
  -h, --help            show this help message and exit
  -d, --debug           debug flag

Comandos:
  {busca,informe,compara,rank}
    busca               Busca fundo
    informe             Informes fundo
    compara             Comparas fundos
    rank                Rank fundos

    Example of use:
        fundosbr busca -h
        fundosbr busca -n verde
        fundosbr busca -c 22.187.946/0001-41
        fundosbr busca -n "ip participa" -t acoes
        fundosbr informe -h
        fundosbr informe 73.232.530/0001-39 -datainicio 202011 -datafim 202012
```

```bash
user@localhost: ~$ fundosbr informe -h
usage: fundosbr informe [-h] [-datainicio DATAINICIO] [-datafim DATAFIM] [-m] cnpj

positional arguments:
  cnpj                  CNPJ do fundo

optional arguments:
  -h, --help            show this help message and exit
  -datainicio DATAINICIO
                        Data inicio (YYYYMM)
  -datafim DATAFIM      Data fim (YYYYMM)
  -m, --mensal          Mostra estatistica mensal

```

```bash
user@localhost: ~$ fundosbr compara -h
usage: fundosbr compara [-h] [-datainicio DATAINICIO] [-datafim DATAFIM] [-m] cnpj

positional arguments:
  cnpj                  CNPJ do fundo

optional arguments:
  -h, --help            show this help message and exit
  -datainicio DATAINICIO
                        Data inicio (YYYYMM)
  -datafim DATAFIM      Data fim (YYYYMM)
  -m, --mensal          Mostra estatistica mensal
```

## Exemplo de uso:

Procura um fundo pelo nome:

![](img/busca_exemplo_1.png)

Mostra os informes de um fundo:

![](img/informe_exemplo.png)


