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.17.dev0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9d531c66362728ed6f0739ab920dcc4e09211331935b8bec5fab53e319e15101 |
|
MD5 | 803e0807ce12912831cbeadbd1cb1c79 |
|
BLAKE2b-256 | 70a2c31a34dd5cae403259d4481fb49c752e553c88d0cbb925038fe27213a37e |
Close
Hashes for silver_surfer_models-0.0.17.dev0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 647856279950d02c60eeb9976dbcf15388c27fbf53e7167de1f971c8692bda32 |
|
MD5 | c65238dbf396b54b0c14c0a0f65b2eac |
|
BLAKE2b-256 | e97654055567ff79f19ece36abfd102372a6423e91c1b062b8b0ac44733c333c |