Bits and bobs for beancount benefit.
Project description
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file alubia-2025.12.8.tar.gz.
File metadata
- Download URL: alubia-2025.12.8.tar.gz
- Upload date:
- Size: 22.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bf3f0dd9c4a357ef356e389968c41d2edd39006ba141711e6c2fc30c2e61b1da
|
|
| MD5 |
bd1a24e672dac8a7a5622197345ae5d1
|
|
| BLAKE2b-256 |
d212036f2998f38d758ebfc34bb3f68a5c16b2ea3025df4bcf0ceb0ea23398ea
|
Provenance
The following attestation bundles were made for alubia-2025.12.8.tar.gz:
Publisher:
ci.yml on Julian/alubia
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
alubia-2025.12.8.tar.gz -
Subject digest:
bf3f0dd9c4a357ef356e389968c41d2edd39006ba141711e6c2fc30c2e61b1da - Sigstore transparency entry: 771047187
- Sigstore integration time:
-
Permalink:
Julian/alubia@9dbbe88d61817f11f71f3bb4e05de6a12f2d9cda -
Branch / Tag:
refs/tags/v2025.12.8 - Owner: https://github.com/Julian
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci.yml@9dbbe88d61817f11f71f3bb4e05de6a12f2d9cda -
Trigger Event:
push
-
Statement type:
File details
Details for the file alubia-2025.12.8-py3-none-any.whl.
File metadata
- Download URL: alubia-2025.12.8-py3-none-any.whl
- Upload date:
- Size: 11.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f7c4859d88ff37925a045cc2a5c67aa28e586fede40bb60f839ccff8fdf93e8e
|
|
| MD5 |
4fb3e5c85919d1b7f17965a81b7c688c
|
|
| BLAKE2b-256 |
1abafd112c67de1ed6254fcb0d2777f2e13882b11880d42123e66f514cc9f7ec
|
Provenance
The following attestation bundles were made for alubia-2025.12.8-py3-none-any.whl:
Publisher:
ci.yml on Julian/alubia
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
alubia-2025.12.8-py3-none-any.whl -
Subject digest:
f7c4859d88ff37925a045cc2a5c67aa28e586fede40bb60f839ccff8fdf93e8e - Sigstore transparency entry: 771047189
- Sigstore integration time:
-
Permalink:
Julian/alubia@9dbbe88d61817f11f71f3bb4e05de6a12f2d9cda -
Branch / Tag:
refs/tags/v2025.12.8 - Owner: https://github.com/Julian
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci.yml@9dbbe88d61817f11f71f3bb4e05de6a12f2d9cda -
Trigger Event:
push
-
Statement type: