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.16.dev0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b29018d19022e7bde110b4e8ca2e8bf4edf2443c2c20b7e3a2cb066195edf320 |
|
MD5 | d766d04814745d2928a115f53d675255 |
|
BLAKE2b-256 | 3547fc1fbc5b6edaba3a5341a76ec0ef01a06f63dba4897694ac05db706344e0 |
Close
Hashes for silver_surfer_models-0.0.16.dev0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 683eef89803ab0cde167a5c6382e0eac51347c1986406b15c8703a71f4828650 |
|
MD5 | 34d076b4e9569944c2cb48c6be2a682f |
|
BLAKE2b-256 | fe9bdb7a1af9ad930e992b1c0aa732766519bed8fc0cb6c44e1e26039721e5f5 |