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.

Source Distribution

silver-surfer-models-0.0.56.dev0.tar.gz (45.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

silver_surfer_models-0.0.56.dev0-py3-none-any.whl (102.6 kB view details)

Uploaded Python 3

File details

Details for the file silver-surfer-models-0.0.56.dev0.tar.gz.

File metadata

  • Download URL: silver-surfer-models-0.0.56.dev0.tar.gz
  • Upload date:
  • Size: 45.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.0

File hashes

Hashes for silver-surfer-models-0.0.56.dev0.tar.gz
Algorithm Hash digest
SHA256 af7ab462cc3a20084421226e7f52027cdd7a1e2ba4c5b31b85a219b2095ccc01
MD5 d0527481528b3a3f3390afc4f505809a
BLAKE2b-256 85f5c87719c725d977ed4eb0d1f1b918dbc3f72782fea6297046116ab3ba14a9

See more details on using hashes here.

File details

Details for the file silver_surfer_models-0.0.56.dev0-py3-none-any.whl.

File metadata

  • Download URL: silver_surfer_models-0.0.56.dev0-py3-none-any.whl
  • Upload date:
  • Size: 102.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.0

File hashes

Hashes for silver_surfer_models-0.0.56.dev0-py3-none-any.whl
Algorithm Hash digest
SHA256 fbb4082a36449da002c722cc06165f1c2f0350829d6d3a7714e245c608eaed36
MD5 2d30b21146e8af5640dd129d4a85a37e
BLAKE2b-256 be7da09dd3403e72ffeca1c6c55064f5911300decb7fafd18fa12a30014a53d0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page