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

Uploaded Source

Built Distribution

dataql-0.1.1-py3-none-any.whl (76.3 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for dataql-0.1.1.tar.gz
Algorithm Hash digest
SHA256 67ad22330accefe657f6b622673fbf4a6eba082418525d2e9687fd8b10a9a79d
MD5 82b0f9941c81086dc439d7033f9cb475
BLAKE2b-256 4ae7149a16d611fb113b21383414cb8da1cb1ed7a90cbc48a71d95d0fbb64f73

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for dataql-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e1cb6af670cf4564b2fd3e711ba33de35181d2fd97671c84f03e804334d6e4cb
MD5 b06b1167f5f914ad462e3900ae736aa9
BLAKE2b-256 d643fcfb0bbd94411e8753c691ff4cf9a9b1e8bccc2b0851cf9ea281f4e5cd71

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