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.14.dev0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0bd4306fdeae6b37610444bea01f218b250abdfa657f07bf51c198832060412f |
|
MD5 | 1e9bb7a2819f72582c0d746217fd1a40 |
|
BLAKE2b-256 | fe184391a8e139ab352d0cd8000b19c15f76f950cc18bb59cfc938c831ee9c5e |
Close
Hashes for silver_surfer_models-0.0.14.dev0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4c64f76c8ae5ec3ec9a58256736f12a8265ca9730e3e04f36f3594e92857fc96 |
|
MD5 | 9084809a853e9a8c79dbc0a56617f1c8 |
|
BLAKE2b-256 | a8de8edf16fdb59ba2180913c75bcf13df782343c851ea133bbfc463051976f5 |