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.3.dev0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 31c7845548798e3ff03a1a39187cc67fd13ca09e3b3b8ad1da440831cdcb2550 |
|
MD5 | 6c0a4473121a187d80a136174fb3f687 |
|
BLAKE2b-256 | 5811908e302fd95e3dde5b0dcc6f70e9a5e3102ed131863d247ddd03ebccc440 |
Close
Hashes for silver_surfer_models-0.0.3.dev0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 35447a3cdcda9cda8fa5719dea62d013ece01a8d69e1c5edb389361d1d4e5394 |
|
MD5 | 47fa6d63135c337befad072210b4e365 |
|
BLAKE2b-256 | 9af3e989cd678cf6262da49e977b6a07fb035c697ffd67937a34d9671f2a53f7 |