pyramid_sqlalchemy_utility
A simple pyramid extension which register a sqlalchemy utility. It add a sqla_session property to request object. Session is opened at first access and automatically commited and closed on request’s finished callback.
It tights sqlalchemy session to request lifecycle rather than relying on thread local scoped sessions as recommended in sqlalchemy documentation:
The Session can be established as the request begins, or using a lazy initialization pattern which establishes one as soon as it is needed. The request then proceeds, with some system in place where application logic can access the current Session in a manner associated with how the actual request object is accessed. As the request ends, the Session is torn down as well, usually through the usage of event hooks provided by the web framework.
Source code and example available on https://github.com/hadrien/pyramid_sqlalchemy_utility
Metadata
Release files for pyramid_sqlalchemy_utility 0.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 | Provenance | Actions |
|---|---|---|---|---|
| pyramid_sqlalchemy_utility-0.1.tar.gz | 2.5 kB | Without provenance | Details for pyramid_sqlalchemy_utility-0.1.tar.gz |
Release files / pyramid_sqlalchemy_utility-0.1.tar.gz
| Download URL | pyramid_sqlalchemy_utility-0.1.tar.gz |
|---|---|
| Size | 2.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1ebef036699f322872ae3f652ee4213c782e2253bae908058266394456a37974
|
|
BLAKE2b-256 checksum How to use checksums |
b73303ef7bd777b80ec2600810faa52018fc24755ab5e201f84b85e1c8ca1094
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for pyramid_sqlalchemy_utility 0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.