Skip to main content

Official EnvVault Python SDK — centralized secrets management

Project description

envvault (Python SDK)

Official Python SDK for EnvVault — centralized secrets management.

Installation

pip install envvault

Requires Python >= 3.10.

Quick Start

from envvault import EnvVaultClient

client = EnvVaultClient(
    api_url="https://api.envvault.example.com",
    token="your-token",
)

# Or rely on env vars: ENVVAULT_API_URL, ENVVAULT_TOKEN
# Or config file: ~/.envv/config.json

value = client.get_secret("DATABASE_URL")
secrets = client.list_secrets()
client.set_secret("API_KEY", "sk-...")
client.delete_secret("OLD_KEY")

Configuration Priority

Priority Source
1 (highest) Constructor args (api_url, token)
2 Environment variables (ENVVAULT_API_URL, ENVVAULT_TOKEN)
3 (lowest) Config file (~/.envv/config.json)

Error Handling

from envvault import EnvVaultClient, AuthenticationError, NotFoundError

client = EnvVaultClient(api_url="...", token="...")

try:
    value = client.get_secret("MY_KEY")
except AuthenticationError:
    print("Invalid token")
except NotFoundError:
    print("Secret not found")

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

envv-1.0.0.tar.gz (5.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

envv-1.0.0-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

Details for the file envv-1.0.0.tar.gz.

File metadata

  • Download URL: envv-1.0.0.tar.gz
  • Upload date:
  • Size: 5.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for envv-1.0.0.tar.gz
Algorithm Hash digest
SHA256 b6e04f6643ea27c0ba55f95cad69ce2229858c548112d08054c64671ce84a3cb
MD5 7ed8026ee6b313696948352c56b41220
BLAKE2b-256 b4f09605fec48f569a2bfa8126e0d58b8b4f7a6b8c9044673fde63edca78b559

See more details on using hashes here.

File details

Details for the file envv-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: envv-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 5.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for envv-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5576a93143944ea025165837adb417961a6c03234cb5d4e482bc3493431fc56b
MD5 f3ee0ed920ca083bcb8dcea275cce128
BLAKE2b-256 7437d6b5387ff0c071fac499fa97a380f853bc24be25954b284148f336aa5b15

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page