py-dataql
Python backend for “Data Query Languages” (like GraphQL and others
What is it?
dataql is for “Data Query Language”. It allows to query data in a simple way.
It is heavily inspired by GraphQL, from Facebook
I didn’t want to force people to think “graph”, and I chose a language that is different in some ways. But this library is written with a base, and we provide a generic parser, but other parsers could easily be written!
How it works?
For example, the default generic parser included, DataQLParser, allows to ask for data with this example query:
User.get('Elon Musk') {
name,
birthday.strftime('%x'),
companies[
name,
date:created_year,
]
}
And to get data like that:
{
'name': 'Elon Musk',
'birthday': '06/28/71',
'companies': [
{
'name': 'Paypal',
'date': 1999
},
{
'name': 'Space X',
'date': 2002
}
]
}
The main use is for an API, letting the client asking what it really needs, in only one http query, without having to update the API endpoints.
The only thing to do on the server side is to define, via a registry, what objects and attributes are allowed.
Metadata
Release files for dataql 0.1.4
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 |
|---|---|---|---|---|
| dataql-0.1.4.tar.gz | 34.4 kB | Without provenance | Details for dataql-0.1.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| dataql-0.1.4-py3-none-any.whl | Python 3 | none | any | Details for dataql-0.1.4-py3-none-any.whl |
Total release size: 111.0 kB
Release files / dataql-0.1.4.tar.gz
| Download URL | dataql-0.1.4.tar.gz |
|---|---|
| Size | 34.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
336f8b92b3f0aecf0b28f502d121d99c5e4935658e9cd29492cd84ead6f4f5b9
|
|
BLAKE2b-256 checksum How to use checksums |
85418999997e1ea2d09a304a87a47e1171191a5ecf9a2908cef51adc777440f8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / dataql-0.1.4-py3-none-any.whl
| Download URL | dataql-0.1.4-py3-none-any.whl |
|---|---|
| Size | 76.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7a8aee15a8badd2e8312fa94d3e85ce29b9e8e74d104cf4f4bcb95b0bc626246
|
|
BLAKE2b-256 checksum How to use checksums |
510215fe9be310b811ce6675e78af3adb589d7dc0894d9e08596d8108c179084
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for dataql 0.1.4
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.