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.2.dev0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f2d5c85b8639ce391cb6bd32b9c6297f722aecaaa22f876621488938672f2b91 |
|
MD5 | 55af00a9d945b2bda0061408d1d6668d |
|
BLAKE2b-256 | 5d3fcbb852320c94082c0367872236b9f4961169c889f98610e75f6f10a5e74f |
Close
Hashes for silver_surfer_models-0.0.2.dev0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 792f452494d9426d5aadd66d1dedebb465773717253d78116a91d13b0fc9b6da |
|
MD5 | dce038cd98fbfeaa417a1e981b822fdf |
|
BLAKE2b-256 | daa20085b4f4020ed6e5e8347b313d5aa12d6fbc1a50388997d0a216b78cdf86 |