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.1.0.tar.gz (5.4 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.1.0-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for envv-1.1.0.tar.gz
Algorithm Hash digest
SHA256 73818e09ca49832d591f0a322ae82bb60859d0185ca5731a3f54f970e2be720b
MD5 72d259d07984585cb9d15e569c5d4839
BLAKE2b-256 304fee46baa4d2a5e6950b657cc02a49e220f64d09081285e2cf6106630e1bf0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: envv-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.6 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.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ec6585e9447fde62a191b5d6bd1f4f9d9903407d50489991f4b6a39022701a63
MD5 56c6ad568a2434301c7f8379aa91dee1
BLAKE2b-256 ee4342dd8d36609c3eac429d400cf6f94ac0bdc16054451cc05a935a534dba74

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