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.5.dev0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1669c3aed6f3b391cb5c3b16b53c277c4162b0fd3b15d5f2d3b9c0fdd2d56b6c |
|
MD5 | f342660aeb842c9ce8268e2eab5239c1 |
|
BLAKE2b-256 | 0d01f856fc922dd22a675d1d1a5b1bb4118ac91bf0537ccad990c5c3bdf25761 |
Close
Hashes for silver_surfer_models-0.0.5.dev0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7da4e3881edbd6ac35c5315dcefe973f27085e74d2aa7c369309d0585824c53b |
|
MD5 | efae191ab4a5b85f17419cd6a9334b8e |
|
BLAKE2b-256 | 21be67e03dd196cbb2af2a435d4a42f01d98ff104e3aad90f02a8ad9118100fe |