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 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 |
Documentazione
| Documento | Contenuto |
|---|---|
CHANGELOG.md |
Modifiche per versione, con le note di migrazione |
general/README.md |
Panoramica della libreria: struttura, contratto sulle sessioni, handler, operazioni spaziali |
general/DOCS.md |
Riferimento completo, metodo per metodo |
Release files for python-general-be-lib 0.9.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.9.1.tar.gz | 95.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| python_general_be_lib-0.9.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 150.8 kB
Release files / python_general_be_lib-0.9.1.tar.gz
| Download URL | python_general_be_lib-0.9.1.tar.gz |
|---|---|
| Size | 95.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b0e3062fbd05b45ae815a3c6f15412d6596ef31dca77855bd5592f8981621108
|
|
BLAKE2b-256 checksum How to use checksums |
8e398a5875acbbb4381a4e0058432acc4e6fd218691345aa2da0cab3991cbca8
|
| 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.9.1-py3-none-any.whl
| Download URL | python_general_be_lib-0.9.1-py3-none-any.whl |
|---|---|
| Size | 55.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5054d7103668f2e58e6ca84bbf60b2692293c493aadc8d0df1fb64c9b8ea180b
|
|
BLAKE2b-256 checksum How to use checksums |
2a4dda3a73ee44e5c376852bbafa9e33663a9c8b42fe17a8e60e4fa83ac7c179
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.5
|