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.52.dev0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | bf3aeafae08491f565160414a2d2f25ff71692dd7683ed9eb45bc5409e4fffef |
|
MD5 | e3f8c9be7e535a465a2a86d3c8b858e8 |
|
BLAKE2b-256 | a86b5e33e08676b37d26c1ba0f2f761f312d61c063a2e2ed16eabb9b1ed98469 |
Close
Hashes for silver_surfer_models-0.0.52.dev0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c44bf894d781d52988a760d61b34c95df56177547a17fb8ed73dae6d349340f7 |
|
MD5 | f775f767ff951f302278c5da7fdb1fdc |
|
BLAKE2b-256 | bbed4956bec939848506c8ead1b5757e2f60f4e24e6986ff78fa60a5892fdc7f |