seriesbr: Uma biblioteca em Python para consultar bancos de dados com séries temporais do BCB, IPEA e IBGE
seriesbr ajuda a consultar, de forma programática, séries temporais dos bancos de dados do Banco Central do Brasil (BCB), Instituto de Pesquisa Econômica Aplicada (IPEA) e Instituto Brasileiro de Geografia e Estatística (IBGE).
É inspirado nos seguintes pacotes escritos em R: rbcb, ipeaData e sidrar.
API
A biblioteca possui três módulos, bcb, ipea e ibge. Cada uma possui uma
função chamada get_series que aceita o identificador da série e retorna um
DataFrame.
Para mais detalhes, leia a documentação.
Exemplo
from seriesbr import bcb
bcb.get_series(20786, start="2015", end="2016")
20786
Date
2015-01-01 26.54
2015-02-01 27.46
2015-03-01 27.21
2015-04-01 28.41
2015-05-01 29.09
2015-06-01 29.75
2015-07-01 30.67
2015-08-01 31.05
2015-09-01 30.89
2015-10-01 32.00
2015-11-01 32.66
2015-12-01 31.08
2016-01-01 33.62
2016-02-01 35.15
2016-03-01 36.44
2016-04-01 38.05
2016-05-01 38.50
2016-06-01 38.36
2016-07-01 39.21
2016-08-01 39.71
2016-09-01 40.22
2016-10-01 41.18
2016-11-01 40.84
2016-12-01 39.12
Contribuindo
Sinta-se à vontade para abrir issues ou pull requests.
Caso queira contribuir, primeiro instale o poetry e depois poetry install.
Rode os testes localmente com poetry run pytest.
Licença
Metadata
Release files for seriesbr 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| seriesbr-1.0.0.tar.gz | 10.5 kB | Without provenance | Details for seriesbr-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| seriesbr-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for seriesbr-1.0.0-py3-none-any.whl |
Total release size: 23.5 kB
Release files / seriesbr-1.0.0.tar.gz
| Download URL | seriesbr-1.0.0.tar.gz |
|---|---|
| Size | 10.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
58162fe24877588ef355d498de5364153540e76540ab1185e7d5570711d6bf12
|
|
BLAKE2b-256 checksum How to use checksums |
7c5ade6a37243956e48e4852ed280977e1ce2191927e8e581841cc3b38f332a6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.12 CPython/3.9.10 Linux/5.11.0-1027-azure
|
Release files / seriesbr-1.0.0-py3-none-any.whl
| Download URL | seriesbr-1.0.0-py3-none-any.whl |
|---|---|
| Size | 13.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
eb88319af4816a7f9ef200f1adfb32b5c56636ce5f22d8787711d0709d9446ba
|
|
BLAKE2b-256 checksum How to use checksums |
191c9b11ff3e607f2901fe1c3df2fe8ba4b482fb2c028a0a8c88135eb3ee83f5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.12 CPython/3.9.10 Linux/5.11.0-1027-azure
|
Security for seriesbr 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.