Skip to main content

Tool for Brazilian Reais monetary adjustment/correction

Project description

Calculadora do Cidadão

GitHub Workflow Status Code Climate maintainability Code Climate coverage PyPI - Python Version PyPI

Pacote em Python para correção de valores. Confira a documentação e o mini-guia de contribuiçã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("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')

asciicast

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

calculadora-do-cidadao-0.5.3.tar.gz (38.4 kB view details)

Uploaded Source

Built Distribution

calculadora_do_cidadao-0.5.3-py3-none-any.whl (48.0 kB view details)

Uploaded Python 3

File details

Details for the file calculadora-do-cidadao-0.5.3.tar.gz.

File metadata

  • Download URL: calculadora-do-cidadao-0.5.3.tar.gz
  • Upload date:
  • Size: 38.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.12 CPython/3.9.6 Linux/5.10.63-v7l+

File hashes

Hashes for calculadora-do-cidadao-0.5.3.tar.gz
Algorithm Hash digest
SHA256 4632ce1bb97f4f44d98fa46538f48146083efbfbeb250d942f8004a0671a7a11
MD5 fba5111d14f30172617bf19b7d6602ab
BLAKE2b-256 0817a77f0a36ea3ebdcc016135f266e55dc8b0521e832e249a97e28d3be568d6

See more details on using hashes here.

File details

Details for the file calculadora_do_cidadao-0.5.3-py3-none-any.whl.

File metadata

File hashes

Hashes for calculadora_do_cidadao-0.5.3-py3-none-any.whl
Algorithm Hash digest
SHA256 5b81b5e87d8a08897b79c102cc0e0dd361fdb87384aaa4090fbb586c6a6e139a
MD5 afb67ad0b3920ae2c58ac31aa5a082a3
BLAKE2b-256 16037e413be2d55f54a56b12453d438ccb14306d3bf77076c5dd407cfbc2ee5b

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page