``dataql`` is for "Data Query Language". It allows to query data in a simple way.
Project description
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.
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
Built Distribution
File details
Details for the file dataql-0.1.4.tar.gz
.
File metadata
- Download URL: dataql-0.1.4.tar.gz
- Upload date:
- Size: 34.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 336f8b92b3f0aecf0b28f502d121d99c5e4935658e9cd29492cd84ead6f4f5b9 |
|
MD5 | 9758c7c0dbc82fcb962847f508829f33 |
|
BLAKE2b-256 | 85418999997e1ea2d09a304a87a47e1171191a5ecf9a2908cef51adc777440f8 |
File details
Details for the file dataql-0.1.4-py3-none-any.whl
.
File metadata
- Download URL: dataql-0.1.4-py3-none-any.whl
- Upload date:
- Size: 76.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7a8aee15a8badd2e8312fa94d3e85ce29b9e8e74d104cf4f4bcb95b0bc626246 |
|
MD5 | 9c0f0911b07f0e3a8f6989206858ee52 |
|
BLAKE2b-256 | 510215fe9be310b811ce6675e78af3adb589d7dc0894d9e08596d8108c179084 |