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.3.tar.gz (53.8 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.3-py3-none-any.whl (89.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: flowquery-1.0.3.tar.gz
  • Upload date:
  • Size: 53.8 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.3.tar.gz
Algorithm Hash digest
SHA256 4c8b9e20ffaa10ccf433fb4572c6e035392d9374d30565f9a220509eb4d813e4
MD5 0e00c243de2e2b1e081a8d0fae165809
BLAKE2b-256 e22ccd488a2921cac0c419f534f712834da56735c89b684530c17ab7e61d5c8d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: flowquery-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 89.4 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 1416d4a0914df74e329946ddbcce3d853ed644fde3106fab31a89296680d7212
MD5 6bfba2cb7ac7615e77a2aae9a7ffebd1
BLAKE2b-256 f8d92410daa726d4326238a69aa5a5de1000c94e3ee05a0239e285dadc29fa21

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