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.56.dev0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | af7ab462cc3a20084421226e7f52027cdd7a1e2ba4c5b31b85a219b2095ccc01 |
|
MD5 | d0527481528b3a3f3390afc4f505809a |
|
BLAKE2b-256 | 85f5c87719c725d977ed4eb0d1f1b918dbc3f72782fea6297046116ab3ba14a9 |
Close
Hashes for silver_surfer_models-0.0.56.dev0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fbb4082a36449da002c722cc06165f1c2f0350829d6d3a7714e245c608eaed36 |
|
MD5 | 2d30b21146e8af5640dd129d4a85a37e |
|
BLAKE2b-256 | be7da09dd3403e72ffeca1c6c55064f5911300decb7fafd18fa12a30014a53d0 |