Snaql. Raw *QL queries in Python without pain 
Totally inspired by Yesql from Clojure world. But implemented in another way.
What?
I totally agree with Yesql's author that SQL is already a mature DSL and great abstaction layer for DB queries building. And we don't need another layer above SQL to work with RDBMS like ORMs or complicated DSLs. Feel free to use all of the SQL's power in your projects without mixing Python code and SQL strings. Solution is very simple and flexible enough to try it in your next project. Also, Snaql doesn't depend on DB clients, can be used in asynchronous handlers (Tornado, for example). It's just a way to organize your queries and a bit of logic to change them by context. Look at examples.
Actually, Snaql doesn't care about stuff you want to build. SQL, SPARQL, SphinxQL, CQL etc., you can build any query for any DB or search engine. Freedom.
Installation
As usual, with pip:
$ pip install snaql
Documentation
You always can find the most recent docs with examples on Snaql GitBook
Simple, without DB clients dependencies (use what you need). Try!
Tested in Python 2.7, 3.3, 3.4, 3.5
Metadata
Release files for snaql 0.4.2
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 |
|---|---|---|---|---|
| snaql-0.4.2.tar.gz | 9.0 kB | Without provenance | Details for snaql-0.4.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| snaql-0.4.2-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for snaql-0.4.2-py2.py3-none-any.whl |
Total release size: 19.9 kB
Release files / snaql-0.4.2.tar.gz
| Download URL | snaql-0.4.2.tar.gz |
|---|---|
| Size | 9.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
29e99d1f4bc9b03793be186d8eef464f82a00cb59b32e0f81a431e07cb7aff71
|
|
BLAKE2b-256 checksum How to use checksums |
cdfd614fdb2246adc2f31d4c11810670e30332f34216ca5f5904914e862b9551
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4
|
Release files / snaql-0.4.2-py2.py3-none-any.whl
| Download URL | snaql-0.4.2-py2.py3-none-any.whl |
|---|---|
| Size | 10.9 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
c3c5cb1caff5a51d1392d0370543e571a2bfe32d7c2278dc1b99d8c0ac6ec4d8
|
|
BLAKE2b-256 checksum How to use checksums |
30601c290804fa2d7fef82873533168776ed1532737b41ccf3f9e8402bb0cf0c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4
|
Security for snaql 0.4.2
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A 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.