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.48.dev0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3a52bcc7f0527b857cb8412710317d52fe0edf873c02157b4d6d85b68740c26c |
|
MD5 | f62dfbb0957cf40b2b0ffba540dbee82 |
|
BLAKE2b-256 | 6b13c035db3391345be0f8abacc5b0a3e74d0107481a290d4ac84122f5918e2b |
Close
Hashes for silver_surfer_models-0.0.48.dev0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1d2d35ea8ae2f6c248e0fd12eacd960f4e6145845b2a178069dba5d9ed13ab87 |
|
MD5 | 667628b266b4e971bf338f525791cc18 |
|
BLAKE2b-256 | 1d11d3834931af5bcd1af9539e12c89c6faefa511372dca1109e7342115f7425 |