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.18.dev0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a1c07080bcaa842fee7a2033e29a9dec05a8de1dc77ad94f302d72b4795bc569 |
|
MD5 | 635b699f7d746b20c35beaeeb2177678 |
|
BLAKE2b-256 | fda5b13b1b1f48114d9dbc459f87142218523088f3037508c5f61d5143c0209b |
Close
Hashes for silver_surfer_models-0.0.18.dev0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cc1d5718903c73850dc0ad7ea5d5e89ae43b4d1aebf2c7bde90278092792d92d |
|
MD5 | 6b3c837477ad55d5b092f49c43f3aa37 |
|
BLAKE2b-256 | c7d76e0ddac5cb2034b94bf4717f8804ef2e3de2eaed1f3529cd3865cba73437 |