Context manager for default relationship values in SQLAlchemy
Project description
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for sqla_model_context-0.2.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d369f6aff56a61228ed900f0df981f8f9c4c739fb7d77460e6a00f5bbd7ac65f |
|
MD5 | d696f9b901ccded74eb65d2b03b5353c |
|
BLAKE2b-256 | 2c3518b64b0bbd3b93f5d133451c6ed0bfa212040e504263ccac0b79f071aabf |