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.44.dev0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | be5bc6ce6968d4703c68bcb4dd1b08493994b0290cb0312e77c7a334f50db24a |
|
MD5 | d4cab7a3c8734a2f53935416dceab1fa |
|
BLAKE2b-256 | a46d288bba5c89f4dabf55b5aa44ecb6d352a4f493a23f5d6a92ac444c2a6a77 |
Close
Hashes for silver_surfer_models-0.0.44.dev0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5e444ad828952f04757906476a22191a7ebabdcbefd8b8112ab5b49d590c4b81 |
|
MD5 | 78ad860018cee12b625e803dc99a37b7 |
|
BLAKE2b-256 | cabc9b52b7e6835a73eb7977cab4ed3db5e490a977a2b5c2e9b38cb4e7485b80 |