Skip to main content

boilpayment-core

Core types, Policy (the single object that drives every edge-case decision across the kit), dependency-injection interfaces (Ledger, Repo, Clock, Notifier, Provider), in-memory reference implementations of those interfaces, and shared helpers (money, period math, operation-level idempotency). Every other boilpayment-* package depends on this one.

Install

pip install boilpayment-core

Usage

from boilpayment_core import resolve_policy, InMemoryLedger, InMemoryRepo, SystemClock, UuidIdGen

# Policy = your billing rules (proration, dunning, refund window, credit rollover, ...).
# resolve_policy(patch) deep-merges your overrides onto DEFAULT_POLICY.
policy = resolve_policy({"dunning": {"grace_days": 3}})

# Reference in-memory implementations of the DI interfaces — useful for tests and examples.
# A real app swaps these for boilpayment-schema-postgres (or its own Repo/Ledger).
ledger = InMemoryLedger()
repo = InMemoryRepo()
clock = SystemClock()
ids = UuidIdGen()

# Every other module function takes a dataclass input carrying policy/ledger/repo/clock/ids.

Full contract: docs/ARCHITECTURE.md · docs/EDGE_CASES.md.

Metadata

Release files for boilpayment-core 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for boilpayment-core 0.1.0
File Size Uploaded Provenance Actions
boilpayment_core-0.1.0.tar.gz 30.5 kB Without provenance Details for boilpayment_core-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for boilpayment-core 0.1.0
File Interpreter ABI Platform Actions
boilpayment_core-0.1.0-py3-none-any.whl Python 3 none any Details for boilpayment_core-0.1.0-py3-none-any.whl

Total release size: 57.0 kB

Release files / boilpayment_core-0.1.0.tar.gz

Download URL boilpayment_core-0.1.0.tar.gz
Size 30.5 kB
Tags Source
SHA-256 checksum
How to use checksums
5e0b52d3ddd897f945a81316d3b3cab704a28e8aa9b7f602b617e15cc07da499
BLAKE2b-256 checksum
How to use checksums
709dfa2368a431da7920881266fa6363795de4c52dec201968f42ea4ce45c15c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.12

Release files / boilpayment_core-0.1.0-py3-none-any.whl

Download URL boilpayment_core-0.1.0-py3-none-any.whl
Size 26.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8985f998470701257fb42d21b138ec0dd46481134a5e9f4f278a4b9ef8e5aaed
BLAKE2b-256 checksum
How to use checksums
c8ee61e6471bc2f01798ee62dc30966bcf1e3d06c7bb1526489e5ab4048db139
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.12

Security for boilpayment-core 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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page