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

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.0
File Size Uploaded
python_general_be_lib-0.11.0.tar.gz 142.7 kB Details

Built distribution (wheel)

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

Total release size: 215.0 kB

Release files / python_general_be_lib-0.11.0.tar.gz

Download URL python_general_be_lib-0.11.0.tar.gz
Size 142.7 kB
Tags Source
SHA-256 checksum
How to use checksums
9d7732f1cd7e29b7ab5841139ae3d0d6deebe0158a9473291b340b8f124e526d
BLAKE2b-256 checksum
How to use checksums
c399e28beb0007afb7c05872eefbe7bc16b9c7f35cbedbee067595dc4fbb48f4
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.0-py3-none-any.whl

Download URL python_general_be_lib-0.11.0-py3-none-any.whl
Size 72.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
184b33159d5b2511f91c0d872876f6c78c79382ff18e19132a6f4118761f04f0
BLAKE2b-256 checksum
How to use checksums
7b7466edae6ee45949ec40f41b84bf0e56dd41f623bf954e4a7a5a9f8c2a098b
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

0.11.2

2 release files

0.11.1

2 release files

This release

0.11.0 This release

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