Skip to main content

Handle accounting and finances in Brazil using Python

Project description

Style Status Docs Status Tests Status Top Language Status Code Style Documentation PyPI Latest Release PyPI Downloads


babilonia

Handle accounting and finances in Brazil using Python.

[!NOTE] Check out the documentation website

Quick Gallery

Parse Bank Statements

Sourced statement from Banco do Brasil:

./extrato_poupanca.csv
    "Data","Histórico","Valor",
    "01/08/2025","Reajuste Monetário - BACEN","3,04 C",
    "01/08/2025","Juros","8,83 C",
    "01/08/2025","Reajuste Monetário - BACEN","1,34 C",
    "01/08/2025","Juros","3,83 C",
    "01/08/2025","Reajuste Monetário - BACEN","16,67 C",
    "01/08/2025","Juros","47,92 C",
    "11/08/2025","Transferência de Crédito","1.000,00 C",
    "29/08/2025","Transferência de Crédito","4.000,00 C",
    "29/08/2025","Reajuste Monetário - BACEN","0,35 C",
    "29/08/2025","Juros","1,02 C",

Code block:

from babilonia.accounting import CashFlowBBPP
file_bb = "./extrato_poupanca.csv"
cashflow = CashFlowBBPP()
cashflow.load_data(file_bb)
df = cashflow.parse_data()
print(df)

Output:

Data           Valor                   Categoria Descricao
2025-08-01      3.04  Reajuste Monetário - BACEN
2025-08-01      8.83                       Juros
2025-08-01      1.34  Reajuste Monetário - BACEN
2025-08-01      3.83                       Juros
2025-08-01     16.67  Reajuste Monetário - BACEN
2025-08-01     47.92                       Juros
2025-08-11   1000.00    Transferência de Crédito
2025-08-29   4000.00    Transferência de Crédito
2025-08-29      0.35  Reajuste Monetário - BACEN
2025-08-29      1.02                       Juros

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

babilonia-1.0.1.tar.gz (118.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

babilonia-1.0.1-py3-none-any.whl (56.5 kB view details)

Uploaded Python 3

File details

Details for the file babilonia-1.0.1.tar.gz.

File metadata

  • Download URL: babilonia-1.0.1.tar.gz
  • Upload date:
  • Size: 118.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for babilonia-1.0.1.tar.gz
Algorithm Hash digest
SHA256 b1acfe255d59fa078edc13c3282fb3985ba31fbfd056f65ca676f2ed453bbde4
MD5 8c5576db4bb9722cacf445997c4dc3af
BLAKE2b-256 5203f9f06ad284faef93a04ace341dc779f44fc7b74f43efa0f3aa73d12b68f3

See more details on using hashes here.

File details

Details for the file babilonia-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: babilonia-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 56.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for babilonia-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0257f79c74f24572f73eb0a1c2c2bb32338ae4853f3922bffd807c971628065f
MD5 27bbcc31268f3d49d868616001ec3749
BLAKE2b-256 5c6bcf221310d1cdb1e57e5ed1f2eee9e3958e739f428a549a4dc2a09ec2acbe

See more details on using hashes here.

Supported by

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