Skip to main content

PyRIT - SQLAlchemy 2.x Compatible Version

This project is a modified version of PyRIT (Python Risk Identification Tool for LLMs) updated to work with SQLAlchemy 2.x releases, including 2.0.x and newer.

Overview

PyRIT is a library used to assess the robustness of Large Language Models (LLMs). This fork maintains the functionality of the original PyRIT while ensuring compatibility with modern SQLAlchemy 2.x environments.

Key Updates

  • Updated ORM models to be compatible with SQLAlchemy 2.x
  • Replaced deprecated SQLAlchemy 1.4-style imports and relationship patterns
  • Updated model declaration patterns for SQLAlchemy 2.x
  • Kept compatibility with current Pydantic-based model usage

Installation

pip install pyrit-sqlalchemy14

Or with Poetry:

poetry add pyrit-sqlalchemy14

Requirements

  • Python 3.10 or higher
  • SQLAlchemy 2.0.6 or newer
  • Pydantic 2.x

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 2.x compatible version is maintained independently

Metadata

Release files for pyrit-sqlalchemy2 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyrit-sqlalchemy2 0.1.0
File Size Uploaded
pyrit_sqlalchemy2-0.1.0.tar.gz 1.1 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for pyrit-sqlalchemy2 0.1.0
File Interpreter ABI Platform
pyrit_sqlalchemy2-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 2.6 MB

Release files / pyrit_sqlalchemy2-0.1.0.tar.gz

Download URL pyrit_sqlalchemy2-0.1.0.tar.gz
Size 1.1 MB
Tags Source
SHA-256 checksum
How to use checksums
9f4ac5acba09cf7d4fda84e77c0ee43ca02e2b961dc04a757ea1a70da63c12e9
BLAKE2b-256 checksum
How to use checksums
2691f1236bcc8ce87baccd1700b404cc00ac41df25012af506cf94f5fd72772a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.10.13

Release files / pyrit_sqlalchemy2-0.1.0-py3-none-any.whl

Download URL pyrit_sqlalchemy2-0.1.0-py3-none-any.whl
Size 1.4 MB
Tags Python 3
SHA-256 checksum
How to use checksums
9c986caf7104b95c7d1ab44e1dbc95ce126ccb7fc526d6e16ab38ee35891622d
BLAKE2b-256 checksum
How to use checksums
58cad6b8e424f25594a596d7037084a665b2cde01331d34be3b13501fe21bb1a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.10.13

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page