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.7.dev0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ced725d984c53f5b26c87f97f5e08728b611ee7eb0bb42845f822e7d2e604b7e |
|
MD5 | 9a8717140fc6c1290fdb8779304cbdb0 |
|
BLAKE2b-256 | 916b5e664c2e2806bc68a012d266f677a7650223a22b81ab4b8258a1f4559f33 |
Close
Hashes for silver_surfer_models-0.0.7.dev0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 150781a069956188bedb488fe387cf3e50d861592aebbc8963545cc8becaa2da |
|
MD5 | 61a72d5aec911c046874f63bd8bdf069 |
|
BLAKE2b-256 | d8479564cd1ada0670877f7ef4fda2fbec20a4f0ef7a943bea9d70621cf8f258 |