Open-source, end-to-end encrypted tool to manage secrets and configs across your team, devices, and infrastructure.
You need Python 3.7+.
$ pip install infisical
If your app only needs to connect to one Infisical project, you should use infisical.connect
. If you need to connect to multiple Infisical projects, use infisical.createConnection
.
Both connect
and createConnection
take a parameter token
and pull in the secrets accessible by that Infisical token.
import infisical
infisical.connect("your_infisical_token")
token
: The service token from which to retrieve secretssite_url
: Your self-hosted Infisical site URL. Default:https://app.infisical.com
.attach_to_process_env
: Whether or not to attach fetched secrets toos.environ
. Default:false
.debug
: Turns debug mode on or off. If debug mode is enabled then the SDK will attempt to print out useful debugging information. Default:false
.
db_url = infisical.get("DB_URL")
See Contributing documentation
infisical-python
is distributed under the terms of the MIT license.