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.38.dev0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 553d3cb89166654a4f10eb312279cb62ed2e4fcff11f63f4ee49354a1de20cfa |
|
MD5 | 7a8501893f61312e53bcaf6578ee7a78 |
|
BLAKE2b-256 | 59fcfd093bb17771c5fe24caf6a624c684cc482d2f65dcca7c7cd827d5a68d84 |
Close
Hashes for silver_surfer_models-0.0.38.dev0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 81bc759ae6ee1c8429aaae49d2b5cf5c0607bb99d182ea6282459703be253397 |
|
MD5 | 7732f589d177fcaa16edc36351f92b65 |
|
BLAKE2b-256 | d6e50370397c76d4cbc49b1d130436adbb19dc5b79d8b448b0484230738a6e7b |