python-general-be-lib
Libreria backend general purpose per progetti Python: repository CRUD e spaziali su SQLAlchemy / GeoAlchemy2, eccezioni FastAPI, modelli base Pydantic e utility di logging.
- Distribuzione PyPI:
python-general-be-lib - Pacchetto importabile:
general - Python richiesto: 3.12+
pip install python-general-be-lib
from sqlalchemy import create_engine
from general.interface.repository.crud_repository import CrudRepository
engine = create_engine("postgresql://user:pass@localhost/db")
repo = CrudRepository(entity=User, model=UserModel, engine=engine)
repo.insert(models=[UserModel(name="Mario", email="mario@example.com")])
repo.find(active=True, order_by="name", asc=True)
Cosa contiene
| Area | Componenti |
|---|---|
| Repository ORM | CrudRepository, GeometryRepository, ManyToManyRepository, ViewRepository |
| Layer Core (senza ORM) | CrudMetadata, GeomMetadata — CRUD e query spaziali su Table riflesse |
| Motore di filtraggio | StatementManager + BaseHandler, JsonHandler, ILikeHandler, JsonILikeHandler, OrHandler, IntervalHandler |
| Basi | Base (declarative base estesa), ExtBaseModel, CamelExtBaseModel |
| Paginazione | PaginatorRequestModel, PaginatorResponseModel |
| Eccezioni | ExceptionInterface e sottoclassi HTTP (400/401/403/404/422/500/503) |
| Logging | init_logger, decorator @log |
Release files for python-general-be-lib 0.8.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| python_general_be_lib-0.8.1.tar.gz | 70.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| python_general_be_lib-0.8.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 127.0 kB
Release files / python_general_be_lib-0.8.1.tar.gz
| Download URL | python_general_be_lib-0.8.1.tar.gz |
|---|---|
| Size | 70.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0ca2f1b944ecea55d4778e166d3a7b3a59e0b0c43ce68a3b9c5d1e115c2b5c5f
|
|
BLAKE2b-256 checksum How to use checksums |
be86779b45faf49cab9151be4acdeeabb63f405f6d96b26dec3bdd731acda0fd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.5
|
Release files / python_general_be_lib-0.8.1-py3-none-any.whl
| Download URL | python_general_be_lib-0.8.1-py3-none-any.whl |
|---|---|
| Size | 56.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6aec439cec73752396e5b99e1c905453ebd2cf09c2a43f188240193d95d70a83
|
|
BLAKE2b-256 checksum How to use checksums |
87a5efb183355579128fe8d953514adbb9c8772722abf0e2bdb49ac2ad5caa1c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.5
|