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.46.dev0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 94425688800c9b670fb5a09d41f9b9fac6ba05fd427166e71618198c5074ba4c |
|
MD5 | b64693861cbe948eed434810cf38dd34 |
|
BLAKE2b-256 | d6958b9f041689ec7ff905b36b431274aad354833396e3b7be7c60474f291231 |
Close
Hashes for silver_surfer_models-0.0.46.dev0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3f7a219584f2fcf46fd7d5905cd3edc6484ada39892560c0b6714e1c106ab7b2 |
|
MD5 | 1c38cbd8229324b3e25885055d10c733 |
|
BLAKE2b-256 | 8c3172870669d47e23a356956c624ff1d59ff383095f48404609c637981fc26b |