Skip to main content

``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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dataql-0.0.1a1.tar.gz (22.1 kB view details)

Uploaded Source

Built Distribution

dataql-0.0.1a1-py3-none-any.whl (27.7 kB view details)

Uploaded Python 3

File details

Details for the file dataql-0.0.1a1.tar.gz.

File metadata

  • Download URL: dataql-0.0.1a1.tar.gz
  • Upload date:
  • Size: 22.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for dataql-0.0.1a1.tar.gz
Algorithm Hash digest
SHA256 7604ea04cf619037e83abcbcce7b13df36c09ff140110fb664330651bd232f74
MD5 28ccd1cb74335b38e0baa01accdbf6df
BLAKE2b-256 3ff52a847372d1170dc9e077ca23e6d5021f36c8fa09e9c1c3b59b390317fed9

See more details on using hashes here.

File details

Details for the file dataql-0.0.1a1-py3-none-any.whl.

File metadata

File hashes

Hashes for dataql-0.0.1a1-py3-none-any.whl
Algorithm Hash digest
SHA256 b80a044054c703071d26f99326f2f395a31d46cd34eaa444004a81d3683f4826
MD5 8ffe65043331eb576c74bdc1e46a45b3
BLAKE2b-256 a0cc665954b7886691de4bcb7b1136934b9f28deb70cf0c5d12470444fbbdf12

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page