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.28.dev0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 33a68b0f32bc7111e83df878394a26b2d8c957231a9c22c3d30115b490dadd8e |
|
MD5 | 7efadfaa9c49dbde91d06d238e2ed650 |
|
BLAKE2b-256 | 0cea711c8e4130a24d4606f74bbd2fcc7a1c506c5d40a6ce987ea15e9e083bd3 |
Close
Hashes for silver_surfer_models-0.0.28.dev0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e149dc1b4af3dc7481c911fe26680e95334d54d943b9b27ee30b866d157fe2a5 |
|
MD5 | 660853ddd86eaaf77c0cefd282b4dcfe |
|
BLAKE2b-256 | 99e044fa767ccd29ba50307649b922076d777c85aa9e3eabb5a45b44c5434c5f |