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.29.dev0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a39c3afd0981bb3d709a688722d8c9ca208c84771bfce26b8e2777426e21d177 |
|
MD5 | 413de2cae4637f20acecced7dc3d8bb1 |
|
BLAKE2b-256 | 7ee61db289125cadffd01bd941aae9bcbc264f0888c64460e38e4619ebfd218c |
Close
Hashes for silver_surfer_models-0.0.29.dev0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 666d1f7ee54db88fd73166ab4beaef9c6539b60688e4856e646e85706ca9a250 |
|
MD5 | 10de6139f807878418a2c393083e99b6 |
|
BLAKE2b-256 | bd537211ecd3f93f689507b2bfff2247b7ee642567e54aa294b7429e434a78dd |