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.50.dev0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5569f8a0b285836fd06613b7f9543ded0f655fc7ddffbf35d5dc1dc788e2a705 |
|
MD5 | 3c17a2e25bb07fec606087f22e50beb6 |
|
BLAKE2b-256 | b43f962c3d5da502e67861891ba84d47a3dd0f74f573f8bbea07a1107e90308c |
Close
Hashes for silver_surfer_models-0.0.50.dev0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 51af96798c164faeb4ac7acd1bd901ed2bd0e14ba18a6c6486df9c6fe1eb4160 |
|
MD5 | bc0fcfb7e456ba8c9d53296ecdf0d421 |
|
BLAKE2b-256 | a74261259438309db426c2e4a469b23a27a443a7b0b89d552cf8c4edb6faf658 |