🚀PyPrisma: Prisma client for Python
Project description
🛑 We are building the basic architecture of pypri, so stay tuned for the initial release.
Pyprisma
Quick Start
pip install pyprisma
Development in local environment
Conda package manager is recommended. Create a conda environment.
conda create -n pyprisma python==3.10
Activate conda environment and install poetry
conda activate pyprisma
pip install poetry
Makefile usage
Makefile
contains a lot of functions for faster development.
Install all dependencies and pre-commit hooks
Install requirements:
make install
Pre-commit hooks coulb be installed after git init
via
make pre-commit-install
Codestyle and type checks
Automatic formatting uses ruff
.
make polish-codestyle
# or use synonym
make formatting
Codestyle checks only, without rewriting files:
make check-codestyle
Note:
check-codestyle
usesruff
anddarglint
library
Code security
If this command is not selected during installation, it cannnot be used.
make check-safety
This command launches Poetry
integrity checks as well as identifies security issues with Safety
and Bandit
.
make check-safety
Tests with coverage badges
Run pytest
make test
All linters
Of course there is a command to run all linters in one:
make lint
the same as:
make check-codestyle && make test && make check-safety
Docker
make docker-build
which is equivalent to:
make docker-build VERSION=latest
Remove docker image with
make docker-remove
More information about docker.
Cleanup
Delete pycache files
make pycache-remove
Remove package build
make build-remove
Delete .DS_STORE files
make dsstore-remove
Remove .mypycache
make mypycache-remove
Or to remove all above run:
make cleanup
🛡 License
This project is licensed under the terms of the MIT
license. See LICENSE for more details.
Credits
This project was generated with P3G
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file pyprisma-0.0.1.tar.gz
.
File metadata
- Download URL: pyprisma-0.0.1.tar.gz
- Upload date:
- Size: 4.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.11.5 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 88b1f9fecd88277c76767522d997b71b956a1888758594f557f8685d9c398ea8 |
|
MD5 | e39d9009f66f2ce2a9efae0ef88037a8 |
|
BLAKE2b-256 | ca7b27b137439e49c27954f1fe32ffc8c288f03cc74d15f3c5d5851d70388cb1 |
File details
Details for the file pyprisma-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: pyprisma-0.0.1-py3-none-any.whl
- Upload date:
- Size: 3.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.11.5 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a7ec203e3124d1db4eb72a0ca7e83f8bdecbedb5c69922aecbbdab08273e08f3 |
|
MD5 | c712fd26ee8b148bccf39b61ade5fde7 |
|
BLAKE2b-256 | 10f444718a9e57f0cbe593c9253ccb6cace332c6a4e6c6b67feb13e75505de0a |