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.36.dev0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a4a99a5236193facb9229c11262f32dfdb61c8da691f0bac1d7459eb828fe624 |
|
MD5 | 9696da1608ff8600cf247306d24de89c |
|
BLAKE2b-256 | 3fcd7ffb2d87111a2e8282a45d718f0a8120cbc649a52ad5472198f46eac6d6f |
Close
Hashes for silver_surfer_models-0.0.36.dev0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7af6db1747ab32a4911a69825f338a00ff62fbb30da904091be7233cfdfd94be |
|
MD5 | c705dd71c99e892ac576500fb75e380c |
|
BLAKE2b-256 | c5242a16270a202d46ed6e77832ebb5d1815237e2032b3c6813334beb1227ed3 |