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.39.dev0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9366ff2589dead86dfaf67aa64606d01a6d34099a900b9452ac11f190d5f4b5c |
|
MD5 | 8a7571cdc58039bc5b233265ebd7b339 |
|
BLAKE2b-256 | d09965d3fc82fb95c564513aed53841060c4bdf7b193c56a6e19bcc03ba19846 |
Close
Hashes for silver_surfer_models-0.0.39.dev0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 33f8e5a8fa804a0e35b1bd9e408f32e4298266c074904ab9f5f21448e82aefa4 |
|
MD5 | 3729772fedbc9c04ac7f34b2adc77bde |
|
BLAKE2b-256 | 3c3bcadc15edf5a794d886ea1fe822dc2dade0ebce87e50e057d0f1e37a7641a |