boilpayment-credits
Credit-pool ledger operations on top of boilpayment-core's append-only Ledger:
grant on period start, consume against a policy-defined pool order, rollover on renewal,
clawback, expiry, and top-ups. Every function is pure DI — pass in your Ledger/Clock/Policy.
Install
pip install boilpayment-credits
Usage
from boilpayment_credits import consume, ConsumeCreditsInput, grant_for_period, GrantForPeriodInput
from boilpayment_core import InMemoryLedger, SystemClock, resolve_policy
ledger = InMemoryLedger()
clock = SystemClock()
policy = resolve_policy()
await grant_for_period(GrantForPeriodInput(
sub=sub, plan=plan, period=period, payment=payment, policy=policy, ledger=ledger, clock=clock,
))
result = await consume(ConsumeCreditsInput(
customer_id="cust_1",
amount=10,
policy=policy, ledger=ledger, clock=clock,
idempotency_key="usage-event-42",
))
Full module contract: docs/ARCHITECTURE.md §3.5.
Metadata
Release files for boilpayment-credits 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| boilpayment_credits-0.1.0.tar.gz | 18.6 kB | Without provenance | Details for boilpayment_credits-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| boilpayment_credits-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for boilpayment_credits-0.1.0-py3-none-any.whl |
Total release size: 32.8 kB
Release files / boilpayment_credits-0.1.0.tar.gz
| Download URL | boilpayment_credits-0.1.0.tar.gz |
|---|---|
| Size | 18.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4ad9938c93a03b9e75e0f915ff1fa4d9d35f3f80071b5a70717881b3fb378cbe
|
|
BLAKE2b-256 checksum How to use checksums |
b8d8711e9c11599629f5975c320f0d57360ce3eb8850574492cc69568bfe7d15
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.12
|
Release files / boilpayment_credits-0.1.0-py3-none-any.whl
| Download URL | boilpayment_credits-0.1.0-py3-none-any.whl |
|---|---|
| Size | 14.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
fd1d95d2e47d1c4ab56501d52fa261be92eef16fa180abc886574c7849cef7a3
|
|
BLAKE2b-256 checksum How to use checksums |
9373acaf3d1948dbb5278db8f9c3bdd8adf8eba5e4d55e509982f22daec40f04
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.12
|
Security for boilpayment-credits 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.