Official Python SDK for Infisical, a secrets management platform. Version 2.x is a complete rewrite (new SDK) that is not backwards-compatible with the 0.x legacy SDK. Provides programmatic access to secrets, service tokens, and machine identity authentication.
Install & Compatibility
Where this runs
No compatibility data collected yet for this library.
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
from infisical_client import InfisicalClient
Initialize client with a service token, then fetch or list secrets.
from infisical import InfisicalClient
client = InfisicalClient(token='your_service_token')
# Fetch a single secret
secret = client.get_secret('MY_API_KEY', environment='dev', project_id='your_project_id')
print(f"Secret: {secret.get('secret_value')}")
# List all secrets in environment
all_secrets = client.list_secrets(environment='dev', project_id='your_project_id')
for s in all_secrets:
print(s['secret_key'], s['secret_value'])
Upgrade
Version history
Breaking-change detection hasn't run for this library yet.
Audit
Security & dependencies
CVE tracking and dependency tree are planned for a later release.