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.1.tar.gz (33.0 kB view details)

Uploaded Source

Built Distribution

dataql-0.1-py3-none-any.whl (76.1 kB view details)

Uploaded Python 3

File details

Details for the file dataql-0.1.tar.gz.

File metadata

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

File hashes

Hashes for dataql-0.1.tar.gz
Algorithm Hash digest
SHA256 5a011ecf60e13297ffb648ccb494ac1cd35d51ec9dc673c1b1c4ebd036945f61
MD5 fb5eaa8790b5825400b4d3820abe17b9
BLAKE2b-256 15b3f231f98708ebcb900d4233976d5d808f93c61bc7d090c12fff756ac4e0ed

See more details on using hashes here.

File details

Details for the file dataql-0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for dataql-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1648f02dd71cf4c00f65aae6ec4c6c20c73958c7c3beee060ce5f8b7252e1d3a
MD5 deb7761a8387533a4276325997725b01
BLAKE2b-256 2c435a89e6641c5efafe8a5849ed4f7ed19a542c07635e823e28ca5e6000de7e

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