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.53.dev0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b0caccba3043709dc479bf395d48ac467ee142374084f1be168eb5771c9915ff |
|
MD5 | 663c2e4cae1dad145489c3de5142f698 |
|
BLAKE2b-256 | 2d0446263a8ee59f95f4fefa63fb224d68d146599202f31e358e32e63a749a34 |
Close
Hashes for silver_surfer_models-0.0.53.dev0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 51a9d5e8cda1cc72aa2635132af8ea3d82a2c377f63b881f3f1285df2145b4c4 |
|
MD5 | 7cb5a8887e8ac2290410437b699a789b |
|
BLAKE2b-256 | bbf69c7aa94aeb615cea3ce6e84d545cd6f222f6ecd9dc4269446e108ba8544a |