MySQL db models
Project description
silver-surfer-db-models
This package provides a reusable abstraction to connect to the silver surfer database.
Commands
List commands
inv -l
Usage
Configure the database in your app
from silver_surfer_models.database import get_db_session
db_uri = 'mysql+pymysql://%s:%s@%s/%s?charset=utf8mb4' % (
'root',
'password',
'host',
'db',
)
engine, db_session, Base = database.get_db_session(db_uri)
How to release a new version?
Update the version
in setup.py
setuptools.setup(
...
version='0.0.9',
...
)
Build the wheel
inv build
Upload the wheel to PyPi repository
inv push
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
Close
Hashes for silver-surfer-models-0.0.41.dev0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 79a10ff3672348e4652e9a8d05eb7ca8e65546390547147c4dfd57e2d656b6d4 |
|
MD5 | 3d6b9bdedac1f29e74044e0cef8be65a |
|
BLAKE2b-256 | 2da7266646cb7ae0a3281093565dc4d863138ea741d1f4ed0341a40a8fd3d320 |
Close
Hashes for silver_surfer_models-0.0.41.dev0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7731c79e50a49493b1020994624b566013e7ee2cedc85fb202dfc0fe3d6bf396 |
|
MD5 | 616e63154b54e2de71b668d41df9d591 |
|
BLAKE2b-256 | 2d24faa5bfbd25c67881579222da7f29f7162ab8467f945dfd6b124c16c6476e |