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.13.dev0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a9edaf7becdd807fd4ec43a4f9f55466483dfb31a2a920d22f22698b4e4fafa1 |
|
MD5 | b51a131b2d93a1851d1808a31e4179df |
|
BLAKE2b-256 | 84f0dbafcd2a5bd137ce4820ff5a16451d11e9d11f5bfb33f043aad36d07049d |
Close
Hashes for silver_surfer_models-0.0.13.dev0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3da110f4e9468745437ee91bae55f556a39fe47deb94d2c1ee1e16d3678f5d28 |
|
MD5 | 9d3352fc1747ada3c5c9ed3e19a23330 |
|
BLAKE2b-256 | 64d1c82953ee43380976e5862de285aa04eefc9a47cf462df34b31f197156943 |