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.32.dev0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8c26904037e1b06e8cae2a3f55271d8d8759906a0cdc3d4a4cec45ada430e3dc |
|
MD5 | bf24f376ce43ea116a82f378ea4e0c8e |
|
BLAKE2b-256 | ed42182d9d1005ad5674ec9ee5f1fd489632a5d3048f7b9234eef798835c0119 |
Close
Hashes for silver_surfer_models-0.0.32.dev0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1fdc239012ffa8d9c5d561e46bfc98edd0308bbc89da7d82ecfcb74f41de8981 |
|
MD5 | 04a3ddd9b4b346ecd8abdc441602ae08 |
|
BLAKE2b-256 | b70fcd52c516f083d38169463c6e128fd794f46602cc1100d8d039ca1341690f |