No project description provided
Project description
With PySQLe you can easily write parameterized SQL queries in Python, and run it against any SQLAlchemy-supported database.
from pysqle import PysqleModule, one
class MyQueries(PysqleModule):
@one
def find_user(self, user_id):
return "select * from users where user_id = :user_id"
# Create the module and directly connect to the database
queries = MyQueries("sqlite:///foo.db")
# Invoke queries
user = queries.find_user(user_id=666)
# Inspect REPL-style:
#
# >>> user.user_id
# 666
# >>> user.username
# thebeast
# >>> user == (666, 'thebeast')
# True
This is the way of running SQL with Python. Install PySQLe today!
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
pysqle-0.0.2.tar.gz
(4.8 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 pysqle-0.0.2.tar.gz.
File metadata
- Download URL: pysqle-0.0.2.tar.gz
- Upload date:
- Size: 4.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.4.1 CPython/3.14.6 Darwin/24.6.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
740594f912ffe7ed41018236a0e5727122b7b0a072d8e9d5b72c30d2ff236593
|
|
| MD5 |
63f55158d3ddd3dda558d22519466f18
|
|
| BLAKE2b-256 |
3f4483b02994ec39e7346f75e08180c3dfa80745f5700cf5e227d3adb9b64821
|
File details
Details for the file pysqle-0.0.2-py3-none-any.whl.
File metadata
- Download URL: pysqle-0.0.2-py3-none-any.whl
- Upload date:
- Size: 6.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.4.1 CPython/3.14.6 Darwin/24.6.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1b8489f276deda866a3d27196ab1e3ac07a2daacf8e504bd230926465d3de621
|
|
| MD5 |
f3e244d70dd2ae286ca5291c9b5e1e94
|
|
| BLAKE2b-256 |
a018de71aa062d9c4b734e87a4f57ebfb14ffc70d8e5ed874fde5a432fcbb5b3
|