baqup-agent
SDK for building baqup backup agents in Python.
⚠️ This is a placeholder package. Full implementation coming soon.
What is baqup?
baqup is a container-native backup orchestration system. Agents are stateless containers that perform backup and restore operations on behalf of the controller.
This SDK provides everything needed to build a compliant baqup agent:
- Contract types -
ExitCode,AgentState,LogLevel - Structured logging - JSON logs with required fields
- Redis communication - Bus client with filesystem fallback
- Heartbeat management - Background thread with intent signalling
- Staging utilities - Atomic writes, checksums, path validation
- Secret handling - Wrapper preventing accidental exposure
Installation
pip install baqup-agent
Usage (Preview API)
from baqup_agent import ExitCode, AgentState, LogLevel
# Exit codes are already available
print(ExitCode.SUCCESS) # 0
print(ExitCode.USAGE_CONFIG_ERROR) # 64
# Agent states
print(AgentState.RUNNING) # 'running'
# Secret wrapper (available now)
from baqup_agent import Secret
password = Secret("my-secret-password")
print(password) # [REDACTED]
print(password.reveal()) # my-secret-password
Contract Compliance
This SDK implements the baqup Agent Contract Specification:
| Section | Feature |
|---|---|
| §1 Lifecycle | State machine, signal handling |
| §2 Config | Environment variable loading |
| §3 Communication | Redis protocol, fallback |
| §4 Output | Atomic completion, manifests |
| §5 Errors | Exit code taxonomy |
| §6 Observability | Structured logging |
| §7 Security | Path validation, secrets |
Related Packages
| Package | Description |
|---|---|
baqup-schema |
Schema validation |
baqup-agent |
Agent SDK (this package) |
Links
License
Fair Source License - see LICENSE for details.
Metadata
Release files for baqup-agent 0.0.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 | |
|---|---|---|---|---|
| baqup_agent-0.0.1.tar.gz | 4.0 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| baqup_agent-0.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 9.7 kB
Release files / baqup_agent-0.0.1.tar.gz
| Download URL | baqup_agent-0.0.1.tar.gz |
|---|---|
| Size | 4.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b455f736e163651b58c82a6f5ba6cb7d325ff16d17ffc4db61e32b9a543df8b6
|
|
BLAKE2b-256 checksum How to use checksums |
a9fa40def33b0d1389ff0812fbfc89b2c98df8564bec34f1e68615af368649ac
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.7
|
Release files / baqup_agent-0.0.1-py3-none-any.whl
| Download URL | baqup_agent-0.0.1-py3-none-any.whl |
|---|---|
| Size | 5.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
63a99abae21816c10f9322394426b554b382c651cbc261df68bd63f58638b898
|
|
BLAKE2b-256 checksum How to use checksums |
f0ccabfacb93ce4c9a78d58f1d9e607d1f76260ca2ad697361963cfab07919f5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.7
|
Security for baqup-agent 0.0.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.
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.