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.1.tar.gz
.
File metadata
- Download URL: infisical-1.0.1.tar.gz
- Upload date:
- Size: 17.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.23.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f4e97cf67531f01717850485407401a6ddbbe92e6460cc6dfdfe8bd1b61445b2 |
|
MD5 | d4b059deab69d02b20d7ceca6ae0562e |
|
BLAKE2b-256 | 54c39c6eada44c0e5d5137ff8e670cf5aca69173465bc867b77fcebe4a817a8e |
File details
Details for the file infisical-1.0.1-py3-none-any.whl
.
File metadata
- Download URL: infisical-1.0.1-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 | 099a4eb708c2215a6ff6798b9f9ba40eafa2b352522720ce9970991972f5d4d1 |
|
MD5 | a10561ab24f8104cc72c945e3c322756 |
|
BLAKE2b-256 | 1fe6ec5e8bc7ddedac7b6a791e95fea516d47a23ee9f3bbdc1b45092b49d531f |