Skip to main content

BottleSQL

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

Installation

PyPi

pip install pip install bottle-sql==0.0.1

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)

Release files for bottle-sql 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for bottle-sql 0.0.2
File Size Uploaded
bottle_sql-0.0.2.tar.gz 4.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for bottle-sql 0.0.2
File Interpreter ABI Platform
bottle_sql-0.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 8.1 kB

Release files / bottle_sql-0.0.2.tar.gz

Download URL bottle_sql-0.0.2.tar.gz
Size 4.3 kB
Tags Source
SHA-256 checksum
How to use checksums
646224395f75f14f5ee01c78d910502cc1577a56490c2193b5b326f6922ad3e4
BLAKE2b-256 checksum
How to use checksums
42f1a52d0136048a83e7ed29881bf43c15f99b9e2dcd619fa307698fb404622f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.5

Release files / bottle_sql-0.0.2-py3-none-any.whl

Download URL bottle_sql-0.0.2-py3-none-any.whl
Size 3.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6512448a47ab057a3a8e8d4674ebb4dc3022ecaae9399793e25a2b82db9245a4
BLAKE2b-256 checksum
How to use checksums
99db86ae57f8e227efebb9e1e0b1f8ab1fa7d72dcd000a08d4602dadc0f0fb3a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.5

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page