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.1.dev0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e22dc4bd68545d4162eea6a8c37e9014b71538653d357e5faa789b06863d8492 |
|
MD5 | 4c0ecadab9ebef6b99b9ae9add16890e |
|
BLAKE2b-256 | ce26532c04f535b0467c7ca1b593c458a1fdcbeb77082e79984ce86193e76e6b |
Close
Hashes for silver_surfer_models-0.0.1.dev0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 11f39f8c7fce07ba70d6df6fee356c5b71488cf0683f880090e1354217b6b559 |
|
MD5 | 0cafeaa3017477ada036478824b397d2 |
|
BLAKE2b-256 | 50bf89587044f92c2709093b8352755efb0fdab65507bb20502994cfe9f2f45a |