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.21.dev0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a16593681cda1aaa4751a84bd6e61671fada54b5127cda8c4ff4dcd8f6446cb2 |
|
MD5 | f3816590b805dce875bc8395840314dc |
|
BLAKE2b-256 | b780122d578d2910cdb9ad99ce04ccdb44476cc6c4cc6e039214fa3a399e881c |
Close
Hashes for silver_surfer_models-0.0.21.dev0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | edb62dfd6495b351dbeec8c7131a38ab8871d352348b8144ad67288206b64472 |
|
MD5 | 09a24f3be8bb17f681ee51bda17dcbe3 |
|
BLAKE2b-256 | 5778b790392fb2ba92c89688679824d473561bb077b0171c4719fc19355fca7f |