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.15.dev0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2acb5bfa2252d121743864f8443fa1ead8c5814c4d64ac8d2180d2cdd9370230 |
|
MD5 | 1b55f5bf24f89a8b4c5fc3e2cfc4360d |
|
BLAKE2b-256 | 53aada2ad32dc0773d9f35b775a0a6beb1688ac24b3b46791417a35357ae558a |
Close
Hashes for silver_surfer_models-0.0.15.dev0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 38f04c06ad148b91bba6250ebda969e17d9d08624334a25a0dc91679ebb9e0b4 |
|
MD5 | ceb005ca38363073e9f7dfdf64f921d8 |
|
BLAKE2b-256 | d385785e2782321ce6a26a938730b72a982ac9d22c328545a6215754d0cf3b90 |