Coder Social home page Coder Social logo

vilquer / bancocentralbrasil Goto Github PK

View Code? Open in Web Editor NEW

This project forked from fintech-hub/bancocentralbrasil

0.0 0.0 0.0 158 KB

💵 💰 :brazil: Informações sobre taxas oficiais diárias de Inflação, Selic, Poupança, Dólar, Dólar PTAX, Euro e Euro PTAX pelo site do Banco Central do Brasil

Home Page: http://www.bcb.gov.br

License: MIT License

Python 100.00%

bancocentralbrasil's Introduction

Banco Central do Brasil

PyPI version Build Status codecov GitHub issues GitHub forks GitHub stars GitHub license

Sobre

  • Informações sobre taxas oficiais diárias de Inflação, Selic, Poupança, Dólar, Dólar PTAX, Euro e Euro PTAX pelo site do Banco Central do Brasil (http://www.bcb.gov.br).

Pré requisitos

Instalação das dependências

$ pip install -r requirements.txt

Instalação

$ python setup.py install

Utilização

$ python .\sample.py
Inflação Meta: 4.0
Inflação acumulada 12 últimos meses: 4.53
Poupança: 0.3715
Dólar compra PTAX: 3.7326
Dólar venda PTAX: 3.7332
Dólar compra: 3.7234
Dólar venda: 3.724
Euro compra PTAX: 4.3276
Euro venda PTAX: 4.3286
Euro compra: 4.3169
Euro venda: 4.318
Selic meta: 6.5
Selic real: 6.4
>>> import bancocentral
>>> inflacao = bancocentral.Inflacao()
>>> print('%s' % inflacao.get_acumulada_tax())
4.53
>>> import bancocentral
>>> selic = bancocentral.Selic()
>>> selic.get_selic_meta()
6.5

Testes unitários

$ python .\test_bancocentral.py
..............................
----------------------------------------------------------------------
Ran 30 tests in 47.580s

OK

Agradecimentos


JetBrains A JetBrains pelo fornecimento da licença do PyCharm para desenvolvimento desta biblioteca.

Licença

Licença MIT

bancocentralbrasil's People

Contributors

leogregianin avatar diegoponciano avatar denisgermano avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.