Skip to main content
https://img.shields.io/pypi/v/sqla_model_context.svg https://github.com/alexrudy/sqla_model_context/workflows/CI/badge.svg Documentation Status

Context manager for default relationship values in SQLAlchemy

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.

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)

Source distribution for sqla-model-context 0.2.2
File Size Uploaded
sqla_model_context-0.2.2.tar.gz 14.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for sqla-model-context 0.2.2
File Interpreter ABI Platform
sqla_model_context-0.2.2-py2.py3-none-any.whl Python 2, Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

0.2.2 This release

2 release files

0.2.1

2 release files

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