https://github.com/cuducos/calculadora-do-cidadao
💵 Tool for Brazilian Reais monetary adjustment/correction
https://github.com/cuducos/calculadora-do-cidadao
brasil brazil data-analysis hacktoberfest monetary python
Last synced: about 1 month ago
JSON representation
💵 Tool for Brazilian Reais monetary adjustment/correction
- Host: GitHub
- URL: https://github.com/cuducos/calculadora-do-cidadao
- Owner: cuducos
- License: gpl-3.0
- Archived: true
- Created: 2019-12-30T20:58:02.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2023-01-26T16:46:49.000Z (about 2 years ago)
- Last Synced: 2024-09-29T19:34:13.693Z (7 months ago)
- Topics: brasil, brazil, data-analysis, hacktoberfest, monetary, python
- Language: Python
- Homepage: https://calculadora-do-cidadao.readthedocs.io
- Size: 389 KB
- Stars: 149
- Watchers: 12
- Forks: 15
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG
- Contributing: CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
- awesome-made-by-brazilians - Calculadora do Cidadão
README
# Calculadora do Cidadão
[](https://github.com/cuducos/calculadora-do-cidadao/actions)
[](https://codeclimate.com/github/cuducos/calculadora-do-cidadao/maintainability)
[](https://codeclimate.com/github/cuducos/calculadora-do-cidadao/test_coverage)
[](https://pypi.org/project/calculadora-do-cidadao/)
[](https://pypi.org/project/calculadora-do-cidadao/)
[](https://calculadora-do-cidadao.readthedocs.io/)Pacote em Python para correção de valores. Confira a [documentação](https://calculadora-do-cidadao.readthedocs.io/) e o [mini-guia de contribuição](CONTRIBUTING.md) para mais detalhes!
> :warning: **Estou buscando pessoas para manter esse projeto.** Não tenho tido tempo para cuidar dele como deveria, e sinto que tenho pouco conhecimento de economia e mercado financeiro para aprimorá-lo.
## Exemplo de uso
```python
In [1]: from datetime import date
...: from decimal import Decimal
...: from calculadora_do_cidadao import IpcaIn [2]: ipca = Ipca()
In [3]: ipca.adjust(date(2018, 7, 6))
Out[3]: Decimal('1.051202206630561280035407253')In [4]: ipca.adjust("2014-07-08", 7)
Out[4]: Decimal('9.407523138792336916983267321')In [5]: ipca.adjust("12/07/1998", 3, "01/07/2006")
Out[5]: Decimal('5.279855889296777979447848574')
```[](https://asciinema.org/a/295920)