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.4.tar.gz (39.3 kB view details)

Uploaded Source

Built Distribution

calculadora_do_cidadao-0.5.4-py3-none-any.whl (48.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: calculadora-do-cidadao-0.5.4.tar.gz
  • Upload date:
  • Size: 39.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.9.4 Darwin/22.1.0

File hashes

Hashes for calculadora-do-cidadao-0.5.4.tar.gz
Algorithm Hash digest
SHA256 f7f725a9b012a0727b41a4c71a5b0da4a993e74b903adf4056ac1b50aa50dd86
MD5 a84f25a5843c050330039bb6cd04a02b
BLAKE2b-256 6248e2349c474d38de55bf38d542a165b7379c8b0e93018d4c857464cc18e151

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for calculadora_do_cidadao-0.5.4-py3-none-any.whl
Algorithm Hash digest
SHA256 fb523423c9ec81bc770ab3613beea964ec8f53dd32766283b18c6dea609c0f11
MD5 163a86a94430fb8d29abaf615dedd932
BLAKE2b-256 d7bd479d66429020b0e8cc156655acabf064adaf98bb6b06ce4fb76dc3647809

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