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.37.dev0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3bc8409533255886a4b78c468dc11917e78622462d9a83085b4d8a9555846ee3 |
|
MD5 | 14e62b6b9ceb0681cd4df0ff3e228c99 |
|
BLAKE2b-256 | cd40a5f717ec6f2a3c957dac53944a81cdea2145f4c562b601e1179e1617add0 |
Close
Hashes for silver_surfer_models-0.0.37.dev0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b31141c4445067b3adfc7a0e6ae89b51ebd33bb0762e8e49ebbd33580b4f6729 |
|
MD5 | 380ca03b303f95233387ece7636fc3d1 |
|
BLAKE2b-256 | 42c0481202415764b54cebd315343d5bdda8fe90eaac36dfad6f5f9177668b38 |