Skip to main content

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.

Files for silver-surfer-models, version 0.0.56.dev0
Filename, size File type Python version Upload date Hashes
Filename, size silver_surfer_models-0.0.56.dev0-py3-none-any.whl (102.6 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size silver-surfer-models-0.0.56.dev0.tar.gz (45.7 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page