Pytector

Latest version: v0.0.10

Safety actively analyzes 623368 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

0.0.9

Or, clone the repository and install directly from the source:
bash
git clone https://github.com/MaxMLang/pytector.git
cd pytector
pip install .


Getting Started:
To begin using Pytector, import the `PromptInjectionDetector` class and initiate it with a pre-defined or custom model. For more detailed instructions, refer to my [Getting Started Guide](https://github.com/MaxMLang/pytector/blob/main/docs/PromptInjectionDetector.md).

python
import pytector

Initialize the detector
detector = pytector.PromptInjectionDetector(model_name_or_url="deberta")

Evaluate your text input for prompt injection
is_injection, probability = detector.detect_injection("Your text input here")
print(f"Is injection: {is_injection}, Probability: {probability}")

Links

Releases

Has known vulnerabilities

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.