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.20.dev0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4b39b48b2cbdb6dcc951543981b786a3ae767a8386e3285d9bdd0aecfad49a80 |
|
MD5 | 753537273baf79ac060832cd464d4ea3 |
|
BLAKE2b-256 | 7b93dd1802fef05dca425b48244f340839ccdab04b8c5051c547efe195c1641b |
Close
Hashes for silver_surfer_models-0.0.20.dev0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5ff04fb046d692631590f3c63fc8a73392115eb0517893fc7f0cf65d98c3c3a1 |
|
MD5 | af69aae2d3e9c092c8e143692832c4a9 |
|
BLAKE2b-256 | d51b6a037eeb4bafa86e9d9e69750a5b27665865c727cb869936516a86ab92d1 |