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.40.dev0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d9f6126eecaba4bfd84474f7d82938113e58257c052d2798f33a8169bf13c08f |
|
MD5 | 10e9b03f62685b85220f0551e48c4f14 |
|
BLAKE2b-256 | 0ba8359c4f105cf223409152657af5c305e43391704311d13f28141a3a2d0365 |
Close
Hashes for silver_surfer_models-0.0.40.dev0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a15c962663701f65dd3c8b8e9424d58b46a07138e579fd9efe313400fb249ff0 |
|
MD5 | 61caecaf42ff5c2ea05b2058e905fb55 |
|
BLAKE2b-256 | 7f7738fffa400847a6faf5bc28077a5ee8c8437f799f3aede68fa59958ba2c03 |