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.25.dev0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 69605cf1eafdf5e3187d2d458f769b23727563a46f2aa0932371bac023c08323 |
|
MD5 | dc7ddfebbaded418eb1392ee6f92ad1d |
|
BLAKE2b-256 | fc9d6f2de0fccbc0d59cd2f10c21071b7f7d506db409b25f74909480d88da036 |
Close
Hashes for silver_surfer_models-0.0.25.dev0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1e8a65164e320da092dc7e9fb41c53272e444650c039ecec7b02a6676b5c958d |
|
MD5 | 63785252bcdba912fb8a6bde69bfbce8 |
|
BLAKE2b-256 | d7d1431eb9ae3e7f81e7bc236b8db7cbf189d3b2e8baea74d78f8dd0b2b7ceaa |