Skip to content

Latest commit

 

History

History

vault

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Pangea Python SDK examples

This is a quick example of how to set up and use the Pangea Python SDK.

Set up

In the example root directory (./examples/vault), run the following command:

$ poetry install

Set up the environment variables (Instructions) PANGEA_VAULT_TOKEN and PANGEA_DOMAIN with your project token configured on the Pangea User Console (token should have access to Vault service Instructions) and with your Pangea domain. Some examples require an additional variable PANGEA_AUDIT_TOKEN_VAULT_ID that is the Vault ID of a Secure Audit Log token.

Run

To run an example, use the following command:

$ poetry run python vault_examples/encrypt.py

Where vault_examples/encrypt.py can be replaced with the desired example.