PugSQL is a simple Python interface for using parameterized SQL, in files, with any SQLAlchemy-supported database.
For more information and full documentation, visit pugsql.org.
import pugsql
# Create a module of database functions from a set of sql files on disk.
queries = pugsql.module('resources/sql')
# Point the module at your database.
queries.connect('sqlite:///foo.db')
# Invoke parameterized queries, receive dicts!
user = queries.find_user(user_id=42)
# -> { 'user_id': 42, 'username': 'mcfunley' }
In the example above, the query would be specified like this:
--- :name find_user :one
select * from users where user_id = :user_id
So throw away your bulky ORM and talk to your database the way the gods intended! Install PugSQL today!
Metadata
Release files for pugsql 0.3.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pugsql-0.3.7.tar.gz | 12.0 kB | With provenance | Details for pugsql-0.3.7.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pugsql-0.3.7-py3-none-any.whl | Python 3 | none | any | Details for pugsql-0.3.7-py3-none-any.whl |
Total release size: 26.7 kB
Release files / pugsql-0.3.7.tar.gz
| Download URL | pugsql-0.3.7.tar.gz |
|---|---|
| Size | 12.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
899efc5000854bcd1d3ecda65e7eb0e08679716dacf175cc2191c9c2f2f82615
|
|
BLAKE2b-256 checksum How to use checksums |
0d9d24ec72b248e7c43f4e0373aa01e3d596dc96d14a99629b856e5d4cdc4edc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 4, 2025.
Transparency logRelease files / pugsql-0.3.7-py3-none-any.whl
| Download URL | pugsql-0.3.7-py3-none-any.whl |
|---|---|
| Size | 14.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c03729d4ef741c4d943838cfce4faa93d531a4ebd9caa38f69550d079e748229
|
|
BLAKE2b-256 checksum How to use checksums |
2b9b0f6dfddc4dcc6fc6280be75f865ced3bfb00eaed6e05586d85e5814a7a70
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 4, 2025.
Transparency logSecurity for pugsql 0.3.7
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for pugsql-0.3.7.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 4, 2025.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.