Official Infisical SDK for Python
Project description
Open-source, end-to-end encrypted tool to manage secrets and configs across your team, devices, and infrastructure.
Links
Installation
You need Python 3.7+.
$ pip install infisical
Initialization
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")
Options
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
.
Access a Secret Value
db_url = infisical.get("DB_URL")
Contributing
See Contributing documentation
License
infisical-python
is distributed under the terms of the MIT license.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file infisical-1.0.0.tar.gz
.
File metadata
- Download URL: infisical-1.0.0.tar.gz
- Upload date:
- Size: 17.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.23.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2883841db053ed824d4b42cd0cddb97b61564a8a27d1202fa98322ec27604fdb |
|
MD5 | 6470cc6e565072bfaecd547f37db35fc |
|
BLAKE2b-256 | 05beab153f662236a8ab9979d23fc5bb46555c9ba312610b918822cd60040ad0 |
File details
Details for the file infisical-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: infisical-1.0.0-py3-none-any.whl
- Upload date:
- Size: 13.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.23.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bc468c4b864b174e9ac4ccdbbc461f3ba160fc2a9f30ed68703f3cf25aaf9a49 |
|
MD5 | d2b1b97ab8edd155d504aea61d365843 |
|
BLAKE2b-256 | 513d3054b7cbcefa80719e4e0d3a7cfece06e75829a95afe5ea3b144685310d3 |