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.24.dev0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 52a9e4bce0e97b393e103bb5046afda64cc21359d8ace4ca9bc6ee29717e2078 |
|
MD5 | 33a8acee45d270118dbdc8c659c41545 |
|
BLAKE2b-256 | 62628a9f1c6fa4ee0b2fe38e6e62d7682366b9539979ae21c68c013056f147d1 |
Close
Hashes for silver_surfer_models-0.0.24.dev0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8c80b8b7b80c9995b3c8a53cc3bddebac66b022f29186db2d00f5901f1d08e77 |
|
MD5 | 803cebffbe3d14cdc0f014e2b7580277 |
|
BLAKE2b-256 | 0bf99b6d26db10228c7c62009f363af0d4a561b39318d8f9c33813c597047db8 |