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.12.dev0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9ec9ef28894dcf7faf4d16228e462ce8e3bce6f15ffa18ccfd1ac769a3e6075a |
|
MD5 | ef604b1d13ef92ec6ce72eaecba8f81f |
|
BLAKE2b-256 | 23a8ca5b4eae57d59288a93a1fa39a7c1cda353e4b58e3f80b48793a5ab8d31d |
Close
Hashes for silver_surfer_models-0.0.12.dev0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3d829a5826a7b122c9c767933cb8b283c8d16ecee9ba77b93868121c389cb34e |
|
MD5 | 509226360e2c40d2ec60eab04c577574 |
|
BLAKE2b-256 | cbcbe3a15f93a7d1c00643604858d94db7db1a77c7c36e4de1c5b09727dea764 |