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.55.dev0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 901d9e79b96fb53de4cd2242b8a9db8d0cc2ed30ddd6b1b4dce8ac2c6f7b0e1c |
|
MD5 | e94289f3c14c896914dd46ed7ce84224 |
|
BLAKE2b-256 | 2dc0037e903dda0d7f81eb696f36c9682ac32d3752bb3a8ad8e2cd426070391d |
Close
Hashes for silver_surfer_models-0.0.55.dev0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 999a815999864fa8a0fe8780eb8a58650119e4d496fd37d56b6580fe3aa8e9a5 |
|
MD5 | 849b2a4d76adbcfdaa8bbbd79fe4ad96 |
|
BLAKE2b-256 | ebd28f040f87bc340ed68433bbad8ecab055339251300073c822fe3aca42bf4b |