Skip to main content

Bits and bobs for beancount benefit.

Project description

PyPI version Supported Python versions Build status

Example

from datetime import date

from alubia.data import Amount, Assets, Expenses

USD = Amount.for_commodity("USD")
CHECKING = Assets.Checking
GROCERIES = Expenses.Groceries

transaction = GROCERIES.transact(
    CHECKING.posting(amount=USD("-50")),
    date=date(2024, 1, 1),
    payee="Grocery Store",
)

# Serialize the transaction to beancount format
print(tx.explicit().serialize())

Outputs:

2024-01-01 * "Grocery Store"
  Expenses:Groceries                                                                        50.00 USD
  Assets:Checking                                                                          -50.00 USD

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

alubia-2025.12.4.tar.gz (21.9 kB view details)

Uploaded Source

Built Distribution

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

alubia-2025.12.4-py3-none-any.whl (9.5 kB view details)

Uploaded Python 3

File details

Details for the file alubia-2025.12.4.tar.gz.

File metadata

  • Download URL: alubia-2025.12.4.tar.gz
  • Upload date:
  • Size: 21.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for alubia-2025.12.4.tar.gz
Algorithm Hash digest
SHA256 3e2f14af07f07f68d81391d79f9afd8fc332afabfce0c8065d13f84ea95ddf86
MD5 7139f334fcb17d8fbbef0b72edc5e9ba
BLAKE2b-256 b940b267b7c2ec166dbf9766d89248b693c2969bac8d60ef6474eae9333ba07e

See more details on using hashes here.

Provenance

The following attestation bundles were made for alubia-2025.12.4.tar.gz:

Publisher: ci.yml on Julian/alubia

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file alubia-2025.12.4-py3-none-any.whl.

File metadata

  • Download URL: alubia-2025.12.4-py3-none-any.whl
  • Upload date:
  • Size: 9.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for alubia-2025.12.4-py3-none-any.whl
Algorithm Hash digest
SHA256 99d57ecb170f087f110a038d3321522d17c0bb9bf13d2f97d9374d25456e0cdd
MD5 4048080c786eaeb0db9a1c97bbfd475f
BLAKE2b-256 7766387df6b3dce119354259963b708f1cd2d4f6d4657d50d203bb3fc53c4468

See more details on using hashes here.

Provenance

The following attestation bundles were made for alubia-2025.12.4-py3-none-any.whl:

Publisher: ci.yml on Julian/alubia

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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