pocketvault-client
Python client for PocketVault — a lightweight self-hosted secret manager.
Features
- Zero external dependencies (stdlib only)
- In-memory cache with optional auto-refresh
- Thread-safe
- Inject secrets directly into
os.environ
Installation
pip install pocketvault-client
Usage
from pocketvault import PocketVault
vault = PocketVault(
url="https://vault.example.com",
token="your-project-api-token",
environment="production",
refresh_interval=60, # optional: re-fetch every 60 seconds
)
# Get a single secret
db_url = vault.get("DATABASE_URL")
# Get with default value
redis_url = vault.get("REDIS_URL", "redis://localhost:6379")
# Get all secrets as dict
all_secrets = vault.all()
# Inject all secrets into os.environ
vault.to_env()
# Force reload
vault.load()
API
| Method | Description |
|---|---|
get(key, default=None) |
Get a single secret value |
all() |
Get all secrets as dict |
load() |
Force fetch from PocketVault API |
to_env() |
Inject all secrets into os.environ |
Requirements
- Python 3.7+
- A running PocketVault instance
License
MIT
Metadata
Release files for pocketvault-client 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 |
|---|---|---|---|---|
| pocketvault_client-0.1.1.tar.gz | 2.4 kB | Without provenance | Details for pocketvault_client-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pocketvault_client-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for pocketvault_client-0.1.1-py3-none-any.whl |
Total release size: 5.0 kB
Release files / pocketvault_client-0.1.1.tar.gz
| Download URL | pocketvault_client-0.1.1.tar.gz |
|---|---|
| Size | 2.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8c515c1c275e39abac19b3207f31fcfd729663fdc0062d310ee8fa6606e33f12
|
|
BLAKE2b-256 checksum How to use checksums |
96161207df452b8c0fd321ee25a9741614b54c0463ca4e052207b9ced48bc8e5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.4
|
Release files / pocketvault_client-0.1.1-py3-none-any.whl
| Download URL | pocketvault_client-0.1.1-py3-none-any.whl |
|---|---|
| Size | 2.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f6e7bbc1dea105e20534bca05e30c9e51039f6ffc85e756bb4ced1c99ef14cb1
|
|
BLAKE2b-256 checksum How to use checksums |
d23aa31d54e9338273f72d0234fff54830a3f0ce86eddaccf5b9c6cbd8073af0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.4
|
Security for pocketvault-client 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.
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.