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.30.dev0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5b724f58222c8d556a4f79619276d4102f426d27063d21677530133f872595b7 |
|
MD5 | 56c14c6703314c6289b9dc10f453f0b4 |
|
BLAKE2b-256 | 1fc6e904de4dd0aade362a39da291112edbf2144c48c0587734e1db565cd4864 |
Close
Hashes for silver_surfer_models-0.0.30.dev0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 72c33d04086f1513afa811c26f48ec8fd330648cd19f1ad44d2b90b61b17966e |
|
MD5 | 1b8fd9f7f501ba1989e59151adb61935 |
|
BLAKE2b-256 | 0ba97332a1b0aa268d34311e2f6e4fa16837f1da5ef49ea4d4877a4272f15850 |