Registry / auth-security / infisical-python

infisical-python

JSON →
library2.3.6pypypi✓ verified 30d ago

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.

auth-securitydevops
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'])
Debug
Known footguns
breakingVersion 2.x is a complete rewrite with a new API design. Code written for the legacy 0.x SDK is incompatible and must be rewritten.
gotchaThe client initializes synchronously but also offers an async interface. Mixing sync and async methods on the same client instance can lead to hangs or errors.
deprecatedLegacy v0.x SDK (pip package 'infisical-python' v0) is deprecated and no longer maintained. Do not install v0.x.
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.

Agent activity
11 hits · last 30 days
gptbot
3
ahrefsbot
3
claudebot
3
bingbot
1
amazonbot
1
Resources