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.8.dev0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3e9f7c0324c14fb6d5e0d605413fe8cbfbe37d33e034df0a43ca89992da1be53 |
|
MD5 | 199f8e8dd4db0b34d7b4bf25fdc4121b |
|
BLAKE2b-256 | 99a3115ad43a08ca6bb251a76bf1160ba68c141a6514a0a1b5528bcf14b0d07a |
Close
Hashes for silver_surfer_models-0.0.8.dev0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ddf03cd9b5b7324523aae7b7848cec5b6d3ac4986b2044619a0b98e51a878ce8 |
|
MD5 | 602e0a2abfba012e16af3a39f545207c |
|
BLAKE2b-256 | 6fc456a2e0fd74a90ebf6a4182aaf424e9840182083511fdca0a3ad679e167be |