Tool for Brazilian Reais monetary adjustment/correction
Project description
Calculadora do Cidadão
Pacote em Python para correção de valores. Confira a documentação para mais detalhes!
Exemplo de uso
In [1]: from datetime import date
...: from decimal import Decimal
...: from calculadora_do_cidadao import Ipca
In [2]: ipca = Ipca()
In [3]: ipca.adjust(date(2018, 7, 6))
Out[3]: Decimal('1.051202206630561280035407253')
In [4]: ipca.adjust(date(2014, 7, 8), 7)
Out[4]: Decimal('9.407523138792336916983267321')
In [5]: ipca.adjust(date(1998, 7, 12), 3, date(2006, 7, 1))
Out[5]: Decimal('5.279855889296777979447848574')
Testes
A suíte de testes roda com tox
. Se você não tiver instalado, pip install tox
deve resolver.
$ tox
Para limpar os arquivos gerados automaticamente, existe o atalho make clean
.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Close
Hashes for calculadora-do-cidadao-0.3.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4acc50b5f65fc408442555391434aaa9ea301acf993101d3646a1aca7daaf55f |
|
MD5 | 9659b669b479af0261f0d47fd7af3f6b |
|
BLAKE2b-256 | d90422f996ee897d2b5db5a93fd424025d75c2e8b2c4b724184f56439d11db9d |