Skip to main content

SQLAlchemy 1.4 compatible version of PyRIT (Python Risk Identification Tool for LLMs)

Project description

PyRIT - SQLAlchemy 1.4 Compatible Version

This is a modified version of PyRIT (Python Risk Identification Tool for LLMs) that has been patched to work with SQLAlchemy 1.4.47 instead of SQLAlchemy 2.0+.

Overview

PyRIT is a library used to assess the robustness of Large Language Models (LLMs). This fork maintains all the functionality of the original PyRIT but makes it compatible with environments that require SQLAlchemy 1.4.x.

Key Modifications

  • Modified database models to work with SQLAlchemy 1.4.47
  • Added custom UUID type implementation for SQLAlchemy 1.4
  • Replaced SQLAlchemy 2.0-specific features with 1.4-compatible alternatives
  • Added compatibility with pydantic-sqlalchemy 0.0.9

Installation

pip install pyrit-sqlalchemy14

Or with Poetry:

poetry add pyrit-sqlalchemy14

Requirements

  • Python 3.10 or higher
  • SQLAlchemy 1.4.47 (not compatible with SQLAlchemy 2.0+)
  • pydantic-sqlalchemy 0.0.9

Usage

The usage is identical to the original PyRIT library. Please refer to the official PyRIT documentation for details.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgments

  • Original PyRIT developed by Microsoft AI Red Team
  • This SQLAlchemy 1.4 compatible version is maintained independently

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyrit_sqlalchemy14-0.9.1.tar.gz (1.1 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyrit_sqlalchemy14-0.9.1-py3-none-any.whl (1.4 MB view details)

Uploaded Python 3

File details

Details for the file pyrit_sqlalchemy14-0.9.1.tar.gz.

File metadata

  • Download URL: pyrit_sqlalchemy14-0.9.1.tar.gz
  • Upload date:
  • Size: 1.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.10.13 Darwin/24.3.0

File hashes

Hashes for pyrit_sqlalchemy14-0.9.1.tar.gz
Algorithm Hash digest
SHA256 ccf900dffac77832dad119f83d248fc64fb2fda8b839afa789a36bde98c7f606
MD5 ecdf76b8d968973856f2d22d12679c61
BLAKE2b-256 eebab8fd91703c006769b01f72cc7f55a4a88c8cf9b765cc688971149c27de49

See more details on using hashes here.

File details

Details for the file pyrit_sqlalchemy14-0.9.1-py3-none-any.whl.

File metadata

  • Download URL: pyrit_sqlalchemy14-0.9.1-py3-none-any.whl
  • Upload date:
  • Size: 1.4 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.10.13 Darwin/24.3.0

File hashes

Hashes for pyrit_sqlalchemy14-0.9.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5ca9310c51bc03461a3363e30686b70d44b0a75f6dbf521c0e100f45d41f7148
MD5 e23c5aa3c6db9ba2333d6d5f232a822a
BLAKE2b-256 93a0161bfbe80140c8f7aee10eb4c64ed31e5a17409ef46c8e6a977ab3137502

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page