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.51.dev0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e6df8da93b9121ef07aa4c773bf7b3e6e052e0aa17a93a098c0e9a752fe43f5e |
|
MD5 | 1101c99c803dc2c314ceca8fac62cee9 |
|
BLAKE2b-256 | 1080f23df8886cf1c12592f6ab30e40ef586959f8643accbe740c71848df30ef |
Close
Hashes for silver_surfer_models-0.0.51.dev0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1d2d6253b9514461ec0b205deb3177a90f3263a9f70fd113f7246e4142ab7166 |
|
MD5 | bbf7a2236690035946d32671094660f0 |
|
BLAKE2b-256 | 6d2d061d875897aafeff9f61f68d4d6ae3b96e32258059734cf9dca574d818a2 |