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.6.dev0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d5f8932eb61ffa943edca0c6d467030d245a15ab11d3625c6925614eb839917b |
|
MD5 | 8bc0c41e37ece617f03c7fc7599e4b7a |
|
BLAKE2b-256 | cf929861cd1b76c1fc4a4a001dad50cc5b1899c6746258431892d062cb3c70f8 |
Close
Hashes for silver_surfer_models-0.0.6.dev0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2d160bbc639d734c6e1de124f7aff96f54ab003c186abe6780f955299b8a527d |
|
MD5 | 0d6536b821374016189b6e9c43752c37 |
|
BLAKE2b-256 | 57af8a659b99fc5d3d696b34c882af25f5d820bee6138af321a1cec736e41892 |