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 details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e458c9f1d32d7ccfe0ae367be8a7650721f9a754aa2168ff2cb7e8484b490d37
|
|
| MD5 |
a4833c6eea9f46413734ad130bf29e60
|
|
| BLAKE2b-256 |
22f2fab772c635484462167b54afbe0679b0824276d7e1c59ab734fe2a8d557b
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
97860b6c33c0677eb44db9a8c127b3b5cf5cdcbd2b4c03ee2fda5db11a39db90
|
|
| MD5 |
81f2c19836f791df638a05259f9eff42
|
|
| BLAKE2b-256 |
a131982fc5662ad0ff73666b5c548d14e13b33098799522ce1e308c289d69f36
|