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.35.dev0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 82d088597b51310b2ab79fb0a4f0e1aab35c5055e9272637b38e084f4eff465a |
|
MD5 | 62ffa5fdc47936175da827f4cfe72952 |
|
BLAKE2b-256 | dc587539ca7e3f81787ed4141728f768ce488266726bb4e57c43eb802c18d449 |
Close
Hashes for silver_surfer_models-0.0.35.dev0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b1c9abb4e7aae195342a733708262a1e95326ea2178d87dd789ef4051f37c817 |
|
MD5 | 4565fc023136b1a27c84239464164d40 |
|
BLAKE2b-256 | d5344f6e65ffd08bdf54e4dd92887566d005fdeb1895748eddd9d9209cdd1887 |