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.43.dev0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 016da7d3b460503fdbbe693b966c852d8598e76e37c59db29b5b967d6102e20d |
|
MD5 | 920e0b731e5ab094d37a960638dfd3bb |
|
BLAKE2b-256 | 78cad0dab61cc4d298c08ad998e4d1a8eba2b4cfb968329156478baad1182bec |
Close
Hashes for silver_surfer_models-0.0.43.dev0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e858302f3228d998c7b315a7631a8651d3ca02e237f507d452842680890c2258 |
|
MD5 | e057e4dce70914b9754b808d76c33ead |
|
BLAKE2b-256 | 2a13feae1eca0e743998f8f9fa02f6c350b0e218be75e3081f4a0945c33eb2ec |