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.10.dev0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 13d90d1b065fea8057ce27371670324fbae726c2f0802795cbbcbcb355a7adf9 |
|
MD5 | a67c84c889491cfee8d5b7f7d1d819cc |
|
BLAKE2b-256 | aa66ed0402e3645468a6a3006b59e481419acb2cc872614e32715f1fe1991133 |
Close
Hashes for silver_surfer_models-0.0.10.dev0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 34933a993d613f034a11826153fffe59313a127160199237b8cd052058f13da9 |
|
MD5 | babf78384e423e518240112d8e5f1a8c |
|
BLAKE2b-256 | 82d62f587cf3997e9d3f0b204f48903a514f312cb9db9b76ea0da521ec160170 |