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.45.dev0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8715b435874ef24c775603fb7c0d222fa995dd88d4516088a74a9106f5d8e919 |
|
MD5 | b939fff87cdacff19ef1f2eee09fa63f |
|
BLAKE2b-256 | a00f928bf46bc48b139f973c967684a95eb9d5b7b50d5f835d6d1e126178d1f6 |
Close
Hashes for silver_surfer_models-0.0.45.dev0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7c62b660881b5ad77080a19ece3472de3e5035c064a77c311ca804a31e2ed044 |
|
MD5 | a0dfb895379e3082d703203845601be4 |
|
BLAKE2b-256 | 5fc9a7202ff2d68c3fec12a651cc10f3bd7032f6742a7812611a5027d7365092 |