spendwall (Python)
Quick start
from spendwall import SpendwallClient
# Zero config: socket and token are auto-discovered from ~/.spendwall
# (override with SPENDWALL_DIR / SPENDWALL_SOCKET / SPENDWALL_TOKEN).
client = SpendwallClient()
Daemon lifecycle
Zero-install by default: the client lazily auto-spawns the daemon on the first call if none is running, and the daemon self-initializes its data dir.
from spendwall import ensure_daemon, SpendwallClient
# Just use it — the daemon is spawned + self-initialized on the first call.
client = SpendwallClient()
# Or manage it explicitly: reuse a healthy daemon, or spawn one (binary via
# SPENDWALL_DAEMON_BIN, the bundled wheel, or PATH).
ensure_daemon()
Opt out of auto-spawn with SPENDWALL_AUTOSPAWN=0 (or SpendwallClient(auto_spawn=False)).
With it disabled, a down daemon fails open in observe/advisory modes and
raises DaemonNotRunningError in enforce mode.
~/.spendwall/auth.toml is machine-managed — the daemon self-generates its
bearer token on first run; don't edit it.
Compatibility window
The SDK checks the daemon's version from /v1/about on first use and refuses a
daemon whose SemVer major is more than 2 away from the SDK's (in either
direction) — raising SpendwallVersionMismatch, which fail-open clients
(observe/advisory) swallow and enforce surfaces. If the daemon advertises a
deprecation notice, the SDK emits a warnings.warn. (Pre-1.0 every version is
major 0, so the window is always satisfied today.)
Provider wrappers
import openai
import spendwall.openai as sw
client = openai.OpenAI(api_key="sk-...")
client = sw.wrap(client, mode="enforce")
# Now every client.chat.completions.create(...) is observed by spendwalld.
Metadata
Release files for spendwall 0.1.1
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 |
|---|---|---|---|---|
| spendwall-0.1.1.tar.gz | 32.3 kB | With provenance | Details for spendwall-0.1.1.tar.gz |
Built distributions (wheels)
| File | Actions Reset | |||
|---|---|---|---|---|
| spendwall-0.1.1-py3-none-manylinux_2_35_x86_64.whl | Python 3 | none | Linux glibc 2.35+ x86-64 | Details for spendwall-0.1.1-py3-none-manylinux_2_35_x86_64.whl |
| spendwall-0.1.1-py3-none-manylinux_2_35_aarch64.whl | Python 3 | none | Linux glibc 2.35+ ARM64 | Details for spendwall-0.1.1-py3-none-manylinux_2_35_aarch64.whl |
| spendwall-0.1.1-py3-none-macosx_11_0_arm64.whl | Python 3 | none | macOS 11.0+ ARM64 | Details for spendwall-0.1.1-py3-none-macosx_11_0_arm64.whl |
| spendwall-0.1.1-py3-none-macosx_10_12_x86_64.whl | Python 3 | none | macOS 10.12+ x86-64 | Details for spendwall-0.1.1-py3-none-macosx_10_12_x86_64.whl |
| spendwall-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for spendwall-0.1.1-py3-none-any.whl |
Total release size: 90.6 MB
Release files / spendwall-0.1.1.tar.gz
| Download URL | spendwall-0.1.1.tar.gz |
|---|---|
| Size | 32.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b7d023fe2b8a8ba0f2a6415864308ec3ec2176b743a1dc4f86d199672f36fdfd
|
|
BLAKE2b-256 checksum How to use checksums |
d3309a68d101e52ec4a927979a2de05fef7eee2f1fc3bd16653a43fc15d8df7e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 22, 2026.
Transparency logRelease files / spendwall-0.1.1-py3-none-manylinux_2_35_x86_64.whl
| Download URL | spendwall-0.1.1-py3-none-manylinux_2_35_x86_64.whl |
|---|---|
| Size | 37.3 MB |
| Tags | Linux glibc 2.35+ x86-64 Python 3 |
|
SHA-256 checksum How to use checksums |
25585987d8951be2f60602c294c008065c689aa789e0ab6d6d18297c820bba27
|
|
BLAKE2b-256 checksum How to use checksums |
8ca5f0969c6942abe68a876d349aa7479ccb027a8a7c03d90dcc7dfd2a382116
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 22, 2026.
Transparency logRelease files / spendwall-0.1.1-py3-none-manylinux_2_35_aarch64.whl
| Download URL | spendwall-0.1.1-py3-none-manylinux_2_35_aarch64.whl |
|---|---|
| Size | 33.6 MB |
| Tags | Linux glibc 2.35+ ARM64 Python 3 |
|
SHA-256 checksum How to use checksums |
16f7ea01c304e9987f51bcb014791c456877127803ef03ed45424967e5a5cf84
|
|
BLAKE2b-256 checksum How to use checksums |
1291e8d0cd09ca574d15ecd2746ad7e322174cbc3b29c3fd02fa7f91f81d8502
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 22, 2026.
Transparency logRelease files / spendwall-0.1.1-py3-none-macosx_11_0_arm64.whl
| Download URL | spendwall-0.1.1-py3-none-macosx_11_0_arm64.whl |
|---|---|
| Size | 9.6 MB |
| Tags | Python 3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
612c944a8cfd47ff5d2b05d5afb8819d56c7014cb6b544bac6c921ca479c4714
|
|
BLAKE2b-256 checksum How to use checksums |
cfcca829b2d31d5e1e72807e360209ce0aa502c6acbf0c354ef5f0ebab912ca0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 22, 2026.
Transparency logRelease files / spendwall-0.1.1-py3-none-macosx_10_12_x86_64.whl
| Download URL | spendwall-0.1.1-py3-none-macosx_10_12_x86_64.whl |
|---|---|
| Size | 10.1 MB |
| Tags | Python 3 macOS 10.12+ x86-64 |
|
SHA-256 checksum How to use checksums |
ad4320c47ce72fb54482ce360a5232d82659830840e736488874802f01761752
|
|
BLAKE2b-256 checksum How to use checksums |
299a4110806eb5952cb901ea0b6bf9633483e0ce51ab477fa514df3cb97e0a7a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 22, 2026.
Transparency logRelease files / spendwall-0.1.1-py3-none-any.whl
| Download URL | spendwall-0.1.1-py3-none-any.whl |
|---|---|
| Size | 23.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b79ee9c0fc5973d8392cd42d1b37ec58b51c185afad11233e56cd496e60ed5b0
|
|
BLAKE2b-256 checksum How to use checksums |
70e94996ed3f580836b671f787301101cf933d8b8fa0cb20b727929c502e8593
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 22, 2026.
Transparency logSecurity for spendwall 0.1.1
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.
Full provenance
All 6 files in this release have been uploaded with provenance metadata.
Attestation for spendwall-0.1.1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 22, 2026.
Transparency logA 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.