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.5.tar.gz (23.8 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.5-py3-none-any.whl (10.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: alubia-2025.12.5.tar.gz
  • Upload date:
  • Size: 23.8 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.5.tar.gz
Algorithm Hash digest
SHA256 238843bc64229b7e2c95596c5a8500e33506b27f0044d2d680ed5fbd10f67d79
MD5 a06dc211686894421e9ad14b4ba3b4f2
BLAKE2b-256 eb4bce85afc4d520a27468dea318f96f2766ae0af1e76be7362776fe5c67880c

See more details on using hashes here.

Provenance

The following attestation bundles were made for alubia-2025.12.5.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.5-py3-none-any.whl.

File metadata

  • Download URL: alubia-2025.12.5-py3-none-any.whl
  • Upload date:
  • Size: 10.8 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.5-py3-none-any.whl
Algorithm Hash digest
SHA256 e4ca4749077c992976d2927b00142597bab36d4559d4ed324a2c553e514d7293
MD5 c7c80eb6d9784ff8408a7b0ce95a6477
BLAKE2b-256 8eeac2ce690e8fc9ce40057ffdc9d025b354f245dacbc86e380840ca42adbb5f

See more details on using hashes here.

Provenance

The following attestation bundles were made for alubia-2025.12.5-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