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.11.dev0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7ae33ce33d1e6a6884f20d9ea45577ae2ad6265142e4a94e6a260ed15aeff6b1 |
|
MD5 | cde8e2c016cd7bcc844ef4536b4cb415 |
|
BLAKE2b-256 | fc7330c53d7361d356e67fdc57e846f0fd8ef39cb9baba3c014eea3bb0e8dff3 |
Close
Hashes for silver_surfer_models-0.0.11.dev0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 106f21671a95f2f674013aeb4d420867bd73f0429d2432fabe53240f0544e113 |
|
MD5 | 572d6b299cb4e40ed9e50bd41f061047 |
|
BLAKE2b-256 | 07975cdc9c8d1c2ca860605c10b99725d8420b5255b60fdd72c6c68ad545ce83 |