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.22.dev0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9780fe48f513c2d04394ff1a58a5e53d5b88c876da1b2f636c13a7303d23931e |
|
MD5 | be9fa49fca6ac468c63ee819cb68e43c |
|
BLAKE2b-256 | 373a6c1aec47477344eff6991064b262854a7c12fb000bc1e265b7b9075dd456 |
Close
Hashes for silver_surfer_models-0.0.22.dev0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 508d038485bc19c68110dbd498fccf2f8a3dc0f3641a1421ce5f714f7ab26632 |
|
MD5 | 3ec832905da84c2be9cc681c58abdb96 |
|
BLAKE2b-256 | 367fb082101e72243643a9dc87b4bd287ba5752f7d2d856efd8fc12ebdd2fb91 |