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.33.dev0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 50b1a5230c12445ad4ab06ecf32d9a3be80a49ffdc569a2fc55c9cc489e72173 |
|
MD5 | 158f0b05441b9f57de7c1b82bde8b92d |
|
BLAKE2b-256 | 2c4f71f1373f57774049078c78aec4716b59d19aa5a8d6d7faed18ed5c89916c |
Close
Hashes for silver_surfer_models-0.0.33.dev0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9404bec976c353c16461c9c2ebe7d88e93cd2f945a5c2c50e99453807e827947 |
|
MD5 | d979a21d64cce607bef26272ac3494b6 |
|
BLAKE2b-256 | 372e0fc22b28f01f69f9be6a3699fc7dc9b11c46d858bb5068e9b04f23c4c0bf |