Prisma Client Python is an auto-generated query builder that enables type-safe database access in Python.
npm install prisma-client-pythoncreate-caspian-app package, which provides a fast and efficient PYTHON environment for development. It features component-based architecture and file-based routing, similar to Next.js and React, but optimized for PYTHON.
npx prisma generate in TypeScript but tailored for PYTHON. This allows developers to effortlessly access, modify, and manage database records using a structured and intuitive API.
bash
npx create-caspian-app@latest
`
3. Remember to chose Caspian ORM when prompted.
4. Generate Prisma Client PYTHON classes by running:
`bash
npx ppy generate
`
This command will convert your schema.prisma models into PYTHON classes, enabling you to interact with your database using these generated classes.
Adding Prisma Client PYTHON to an Existing Caspian Project
To integrate Prisma Client PYTHON into an existing Caspian project, follow these steps:
1. Open your terminal.
2. Install Prisma Client PYTHON globally by running:
`bash
npm install -g prisma-client-python@latest
`
This command installs the Prisma Client PYTHON package globally, making it available for use in any PYTHON project.
3. Initialize Prisma Client PYTHON in your project by running:
`bash
npx ppy init
`
This command sets up all necessary packages for Prisma Client PYTHON to function within your existing project.
Features
- Auto-Generated PYTHON Classes: Prisma Client PYTHON automatically generates PYTHON classes based on your Prisma schema.
- Type-Safe Database Queries: Work with your database in a structured and predictable way.
- Seamless ORM Integration: Leverages Prisma ORM’s powerful query engine within a PYTHON environment.
- Component-Based Development: Works alongside create-caspian-app, providing a modern development experience.
- File-Based Routing: Inspired by Next.js and React, simplifying route management in PYTHON projects.
Contributing
We welcome contributions to Prisma Client PYTHON! If you have suggestions, bug reports, or pull requests, feel free to open an issue or submit a PR in the repository.
License
Prisma Client PYTHON is licensed under the MIT License. See the LICENSE` file for more details.