Skip to main content

SQL plugin for Bottle

Project description

BottleSQL

SQL plugin for Bottle. Supports MySQL/MariaDB and SQLite.

Installation

PyPi

pip install <TODO>

Source

wget https://raw.githubusercontent.com/thepure12/bottle-sql/main/src/bottle_sql/bottle_sql.py

Usage

SQL

from bottle import Bottle
from bottle_sql import sqlPlugin

app = Bottle()
user, pw, host, db = ("root", "", "localhost", "mydb")
sql_plugin = sqlPlugin(user=user, password=pw, host=host, database=db)
app.install(sql_plugin)

SQLite

from bottle import Bottle
from bottle_sql import sqlitePlugin

app = Bottle()
dbfile= ":memory:"
sql_plugin = sqlitePlugin(dbfile)
app.install(sql_plugin)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

bottle_sql-0.0.1.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

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

bottle_sql-0.0.1-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

Details for the file bottle_sql-0.0.1.tar.gz.

File metadata

  • Download URL: bottle_sql-0.0.1.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.6

File hashes

Hashes for bottle_sql-0.0.1.tar.gz
Algorithm Hash digest
SHA256 e458c9f1d32d7ccfe0ae367be8a7650721f9a754aa2168ff2cb7e8484b490d37
MD5 a4833c6eea9f46413734ad130bf29e60
BLAKE2b-256 22f2fab772c635484462167b54afbe0679b0824276d7e1c59ab734fe2a8d557b

See more details on using hashes here.

File details

Details for the file bottle_sql-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: bottle_sql-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 3.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.6

File hashes

Hashes for bottle_sql-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 97860b6c33c0677eb44db9a8c127b3b5cf5cdcbd2b4c03ee2fda5db11a39db90
MD5 81f2c19836f791df638a05259f9eff42
BLAKE2b-256 a131982fc5662ad0ff73666b5c548d14e13b33098799522ce1e308c289d69f36

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