Skip to main content

A declarative query language for data processing pipelines

Project description

FlowQuery

A declarative query language for data processing pipelines.

Installation

pip install flowquery

Quick Start

Command Line Interface

Start the interactive REPL:

flowquery

Programmatic Usage

import asyncio
from flowquery import Runner

runner = Runner("WITH 1 as x RETURN x + 1 as result")
asyncio.run(runner.run())
print(runner.results)  # [{'result': 2}]

Creating Custom Functions

from flowquery.extensibility import Function, FunctionDef

@FunctionDef({
    "description": "Converts a string to uppercase",
    "category": "string",
    "parameters": [
        {"name": "text", "description": "String to convert", "type": "string"}
    ],
    "output": {"description": "Uppercase string", "type": "string"}
})
class UpperCase(Function):
    def __init__(self):
        super().__init__("uppercase")
        self._expected_parameter_count = 1

    def value(self) -> str:
        return str(self.get_children()[0].value()).upper()

Documentation

License

MIT License - see LICENSE for details.

Links

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

flowquery-1.0.31.tar.gz (73.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

flowquery-1.0.31-py3-none-any.whl (126.5 kB view details)

Uploaded Python 3

File details

Details for the file flowquery-1.0.31.tar.gz.

File metadata

  • Download URL: flowquery-1.0.31.tar.gz
  • Upload date:
  • Size: 73.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for flowquery-1.0.31.tar.gz
Algorithm Hash digest
SHA256 cb7a9dc592c50ea77cb4bd72a0d545607534d6c14acd745793cd2c83430b0302
MD5 ebe3cf8054444f7a21e7307ea7c6b58e
BLAKE2b-256 d21892d0ec599f0d9b64e42048ef64029918eb78d2f18585322015e83ffaf630

See more details on using hashes here.

File details

Details for the file flowquery-1.0.31-py3-none-any.whl.

File metadata

  • Download URL: flowquery-1.0.31-py3-none-any.whl
  • Upload date:
  • Size: 126.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for flowquery-1.0.31-py3-none-any.whl
Algorithm Hash digest
SHA256 db050898effa654cd8e83638e9894dd8f486ec797ac167ec849d24677ccd14b8
MD5 71a93faa9aaf138e51ec42f30f937490
BLAKE2b-256 4468e9e8c9e6203c10bd5c8546f0748fcd7338385444a984aea3faa2aa4b0481

See more details on using hashes here.

Supported by

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