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.34.dev0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7d94f2cec3ca2554ecf0078bee8680b6c0e94818d9140f7ba18dc584afe34852 |
|
MD5 | 74f4c734ba61e0308678b81132a79f3f |
|
BLAKE2b-256 | 1e24d1e8a5212909de70121fe839a429658f93e207932b7e96ba6f5983cdf443 |
Close
Hashes for silver_surfer_models-0.0.34.dev0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f98617915f185ecc3ab1dff19324b1107f248c8ef436e330cacbbd4263e08b4a |
|
MD5 | 8bf3b7d7c023007b9205b19ad033cf6f |
|
BLAKE2b-256 | 0c25ee03afa60de902b9ccdc81f0145608a48d89a7fbfcba430316405e6f2213 |