Skip to main content

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.11.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for python-general-be-lib 0.11.2
File Size Uploaded
python_general_be_lib-0.11.2.tar.gz 145.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for python-general-be-lib 0.11.2
File Interpreter ABI Platform
python_general_be_lib-0.11.2-py3-none-any.whl Python 3 none any Details

Total release size: 218.2 kB

Release files / python_general_be_lib-0.11.2.tar.gz

Download URL python_general_be_lib-0.11.2.tar.gz
Size 145.2 kB
Tags Source
SHA-256 checksum
How to use checksums
2558bbed832e52c1e4ac587cc5a850155e236d428fb3c0611a22eec104752b7d
BLAKE2b-256 checksum
How to use checksums
a096b07f404d13350cee66faf4a09751a9dbbf5ca243524d96e8b73cb1acb6e0
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.11.2-py3-none-any.whl

Download URL python_general_be_lib-0.11.2-py3-none-any.whl
Size 73.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
08d200b1c3d16ce8c342921cc1a67c0709a9f633e9802d01be5a32e70656d4d6
BLAKE2b-256 checksum
How to use checksums
138a46fae77d04660d15f49bee971cadad4b2e01ede4de40eed24d3bbb906c2a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.5

Release history Release notifications | RSS feed

This release

0.11.2 This release

2 release files

0.11.1

2 release files

0.9.1

2 release files

0.9.0

2 release files

0.8.4

2 release files

0.8.3

2 release files

0.8.2

2 release files

0.8.1

2 release files

0.8.0

2 release files

0.7.2

2 release files

0.7.1

2 release files

0.7.0

2 release files

0.6.0

2 release files

0.5.5

2 release files

0.5.4

2 release files

0.5.3

2 release files

0.5.2

2 release files

0.5.1

2 release files

0.5.0

2 release files

0.4.2

2 release files

0.4.1

2 release files

0.4.0

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page