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
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
bottle_sql-0.0.1.tar.gz
(4.3 kB
view hashes)
Built Distribution
Close
Hashes for bottle_sql-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 97860b6c33c0677eb44db9a8c127b3b5cf5cdcbd2b4c03ee2fda5db11a39db90 |
|
MD5 | 81f2c19836f791df638a05259f9eff42 |
|
BLAKE2b-256 | a131982fc5662ad0ff73666b5c548d14e13b33098799522ce1e308c289d69f36 |