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.19.dev0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 39befa9371b08136f1a85208d4e7b07a18498b7200949dd8c2b8465a1a92003b |
|
MD5 | ccf7b7b4ffcbcd0c4fe940c988aef9f9 |
|
BLAKE2b-256 | cf9b1bb4487618302f20b6fb590727740c328fc757f5e28ba93a2ac3a1e52fba |
Close
Hashes for silver_surfer_models-0.0.19.dev0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f17e5e323b2cd513b4e4c7c41f73734014012621f1772d17f3cafe4d95ea4f73 |
|
MD5 | 69ea0693472d12cc79b66bd3e3b93f2f |
|
BLAKE2b-256 | dfd726ae485d6e263560f33b6b6a15adf42588a60d330ade6b5f33bbd44567d0 |