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.31.dev0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6d1d35c975365a8f5aa6c971cb2f96a311ce161fccc2e704e97c08276d65dee2 |
|
MD5 | 2972b4d4fdea9032b950f53c17939c96 |
|
BLAKE2b-256 | 4a6a333228f5baf174d204d9eb2ef1afa29f60970f197d497bf6fcf6448fab68 |
Close
Hashes for silver_surfer_models-0.0.31.dev0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 847cb4f05465b182834cd98134d84ecc9d170dfd9237c0a9c67f2d8cc9469cf4 |
|
MD5 | f37a2e650da7541dca3d5362fd56539a |
|
BLAKE2b-256 | c20973445f1eff1477befb04676e499427349d201b25dc01dc852d9c393bd1c1 |