Model Relative Context Manager
Context manager for default relationship values in SQLAlchemy
Free software: MIT license
Documentation: https://sqla-model-context.readthedocs.io.
This is primarily a way to ensure that common relationships (e.g. user_id on lots of user generated content) are easy to set via the SQLAlchemy context. It works well in concert with flask_login, where it allows you to leverage flask_login’s current_user to set a default relationship value. See the examples directory for a small usage example.
Credits
This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.
Metadata
Release files for sqla-model-context 0.2.2
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 |
|---|---|---|---|---|
| sqla_model_context-0.2.2.tar.gz | 14.5 kB | Without provenance | Details for sqla_model_context-0.2.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| sqla_model_context-0.2.2-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for sqla_model_context-0.2.2-py2.py3-none-any.whl |
Total release size: 21.6 kB
Release files / sqla_model_context-0.2.2.tar.gz
| Download URL | sqla_model_context-0.2.2.tar.gz |
|---|---|
| Size | 14.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
40aac10344b97ecf7ec7be9d7c4b231864ebecfe649c3c4995c58bc0a97ed8b3
|
|
BLAKE2b-256 checksum How to use checksums |
f3ef4e01fc09447cfe3bc40ffa5ea5b6af4f2c636d1acf274f1428a946a414ba
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.3
|
Release files / sqla_model_context-0.2.2-py2.py3-none-any.whl
| Download URL | sqla_model_context-0.2.2-py2.py3-none-any.whl |
|---|---|
| Size | 7.1 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
d369f6aff56a61228ed900f0df981f8f9c4c739fb7d77460e6a00f5bbd7ac65f
|
|
BLAKE2b-256 checksum How to use checksums |
2c3518b64b0bbd3b93f5d133451c6ed0bfa212040e504263ccac0b79f071aabf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.3
|
Security for sqla-model-context 0.2.2
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.