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.42.dev0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | fb22ce6359d1263a82c588d429c1a8b7d31d66d9b6889926f916ffafb4899359 |
|
MD5 | 4e48d1a9281c4f071aa7c5e3e2786d00 |
|
BLAKE2b-256 | 538a59670ab588681014e607bf21112f85ad9b20a9d04969cf01382a8bf6179e |
Close
Hashes for silver_surfer_models-0.0.42.dev0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f39d3b7b8c08e1eff5370c8e99fd3c88ed55e0750e8e3100834305a7c8d0a15f |
|
MD5 | 1015d2c12b35c1cf95479480a19fa5e7 |
|
BLAKE2b-256 | 797202b98787495b2214c5a9368962e5ae5b8bb0d8a11ebf61352db0b3ac8d0e |