
Security News
npm Adopts OIDC for Trusted Publishing in CI/CD Workflows
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
protegrity-developer-python
Advanced tools
Python module for integrating Protegrity's Data Discovery and Protection APIs into GenAI and traditional applications.
Welcome to the protegrity-developer-python
repository, part of the Protegrity Developer Edition suite. This repository provides the Python module for integrating Protegrity's Data Discovery and Protection APIs into GenAI and traditional applications.
Customize, compile, and use the module as per your requirement.
💡Note: This module should be built and used, only if you intend to change the source and default behavior.
💡Note: Ensure that the Protegrity Developer Edition is running before installing this module. For setup instructions, please refer to the documentation here.
.
├── LICENSE
├── README.md
├── pyproject.toml
├── pytest.ini
├── requirements.txt
├── src
│ ├── protegrity_developer_python
│ │ ├── __init__.py
│ │ └── securefind.py
└── tests
├── e2e
│ ├── features
│ ├── steps
│ ├── data
│ └── utils
│ └── conftest.py
│ └── README.md
└── unit
└── test_securefind.py
protegrity-developer-python
module is already installed, uninstall it from the Python virtual environment.pip uninstall protegrity-developer-python
git clone https://github.com/Protegrity-Developer-Edition/protegrity-developer-python.git
protegrity-developer-python
directory in the cloned location.pip install -r requirements.txt
pip install .
The installation completes and the success message is displayed.import protegrity_developer_python
protegrity_developer_python.configure(
endpoint_url="http://localhost:8580/pty/data-discovery/v1.0/classify",
named_entity_map={"PERSON": "NAME", "SOCIAL_SECURITY_NUMBER": "SSN"},
masking_char="#",
classification_score_threshold=0.6,
method="redact",
enable_logging=True,
log_level="info"
)
input_text = "John Doe's SSN is 123-45-6789."
output_text = protegrity_developer_python.find_and_redact(input_text)
print(output_text)
💡Note: Ensure that the Protegrity Developer Edition is running before executing this snippet. For setup instructions, please refer to the documentation here
You can configure the SDK using a config.json
file or programmatically. Key parameters include:
Use this repo to build GenAI applications like chatbots that:
See LICENSE for terms and conditions.
FAQs
Python module for integrating Protegrity's Data Discovery and Protection APIs into GenAI and traditional applications.
We found that protegrity-developer-python demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
Research
/Security News
A RubyGems malware campaign used 60 malicious packages posing as automation tools to steal credentials from social media and marketing tool users.
Security News
The CNA Scorecard ranks CVE issuers by data completeness, revealing major gaps in patch info and software identifiers across thousands of vulnerabilities.