This is a quick example of how to set up and use the Pangea Python SDK.
In the example root directory (./examples/redact
), run the following command:
poetry install
Set up the environment variables (Instructions) PANGEA_REDACT_TOKEN
and PANGEA_DOMAIN
with your project token configured on the Pangea User Console (token should have access to Redact service Instructions) and with your Pangea domain.
You'll need to set up and enable some rulesets in Redact service config.
To run examples:
poetry run python redact_examples/text.py