prisma
Prisma Client Python is an auto-generated and fully type-safe database client
What it is and what it does
Prisma Client Python is a code-generated ORM that reads a declarative schema file and produces a fully type-hinted database client. Unlike traditional ORMs where you write queries in Python, Prisma generates the client from your schema, enabling IDE autocompletion and compile-time type checking. It supports both async and sync workflows, atomic updates, relational queries, and batching, with backends for PostgreSQL, MySQL, SQLite, CockroachDB, and experimental support for MongoDB and SQL Server.
The package is built on Rust-based Prisma internals but requires no Node.js or TypeScript knowledge—you define your models in a simple schema language and run `prisma db push` to sync and generate. However, the repository is now archived and abandoned, with the last commit in April 2025 and no ongoing maintenance. This means no new features, no active bug fixes, and potential incompatibility with future Python or database versions.
Use it for:
- Building REST or GraphQL APIs where type safety and IDE autocompletion for database queries reduce errors and development time.
- Projects requiring both async and sync database access patterns without switching ORMs or writing dual code paths.
- Applications needing schema-driven migrations and type-safe relational queries across PostgreSQL, MySQL, or SQLite.
- Teams using Pylance or Pyright where Prisma's autocompletion support provides a significant developer experience advantage.
- Prototyping or maintaining existing Prisma Python projects, though new projects should consider actively maintained alternatives.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Prisma Client Python is a type-safe ORM that generates a fully typed database client from a schema file, supporting both synchronous and asynchronous access to PostgreSQL, MySQL, SQLite, CockroachDB, and experimental MongoDB and SQL Server.
Yes-with-conditions. Prisma Client Python is well-designed and offers genuine advantages in type safety and autocompletion if your team uses Pylance/Pyright. However, the repository is archived and abandoned—install only if you are maintaining an existing project or willing to fork and maintain it yourself. For new projects, strongly consider an actively maintained alternative like SQLAlchemy or Tortoise ORM to avoid future compatibility and security risks.
Install
prisma on PyPI
pip
pip install prismauv
uv add prismapoetry
poetry add prismaInstalling prisma
Before you install
Low install friction with a pure-Python wheel and ten runtime dependencies. However, the repository is archived and marked abandoned as of the fact sheet date, with the last commit in April 2025 and no active maintenance—a significant concern for a database tool where schema compatibility and bug fixes matter.
License in practice
Licensed under Apache 2.0 (permissive), which allows commercial and private use without restriction, though you should verify compatibility with your project's license stack.
Quickstart
pip install prisma
# Create schema.prisma with your models, then:
prisma db push
# In your code:
import asyncio
from prisma import Prisma
async def main():
db = Prisma()
await db.connect()
user = await db.user.create(data={'name': 'Alice', 'email': 'alice@example.com'})
await db.disconnect()
asyncio.run(main())
Requires a Prisma schema file (schema.prisma) in your project root defining data models and database connection; the repository is archived and no longer maintained.
Verify before relying
- Whether the abandoned status affects real-world stability or if the package remains functional for existing projects.
- Current compatibility with modern Python 3.12+ and recent database driver versions.
- Whether security patches or critical bug fixes are still being backported or if the codebase is truly frozen.
Package facts
| License | APACHE (permissive) |
| Python support | supports the current Python release (>=3.8.0) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 10 — httpx, jinja2, pydantic, click, python-dotenv, typing-extensions, tomlkit, nodeenv, StrEnum, cached-property |
| Maintenance | abandoned — 728 days since the last release |
| Last repo commit | (repository archived) |
| First released | |
| Downloads | 865,075/month — #4,865 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: prisma-0.15.0-py3-none-any.whl
Keywords: orm, mysql, typing, prisma, sqlite, database, postgresql
Tags
More Python Modules packages
Converts domain names between Unicode and…
permissive · top 100 on PyPI
setuptoolsSetuptools is a Python build backend and…
permissive · top 100 on PyPI
PyYAMLPyYAML parses and emits YAML 1.1 data format,…
permissive · top 100 on PyPI
pydanticPydantic validates Python data structures…
permissive · top 100 on PyPI
annotated-typesProvides reusable metadata objects for use with…
permissive · top 100 on PyPI
typing-inspectionProvides runtime tools to inspect and…
permissive · top 100 on PyPI
prisma-saseLightweight Python SDK wrapper for the Palo…
permissive · top 15,000 on PyPI
tortoise-ormTortoise ORM is an async-native…
permissive · top 15,000 on PyPI
sqlalchemy-cockroachdbA SQLAlchemy dialect that enables ORM and SQL…
permissive · top 5,000 on PyPI
ormarAn async ORM for Python that unifies database…
permissive · top 15,000 on PyPI
sqlalchemy-jdbcapiSQLAlchemy dialect for JDBC and ODBC database…
permissive · top 15,000 on PyPI
sqlmodelSQLModel combines SQLAlchemy and Pydantic to…
permissive · top 5,000 on PyPI
databasesProvides async database access for PostgreSQL,…
permissive · top 5,000 on PyPI
pysqlsyncSynchronize database schemas and bulk-load data…
permissive · top 15,000 on PyPI
ponyPony is an object-relational mapper that lets…
permissive · top 15,000 on PyPI
marshmallow-sqlalchemyGenerates marshmallow schemas from SQLAlchemy…
permissive · top 5,000 on PyPI