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.28.tar.gz (71.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.28-py3-none-any.whl (122.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: flowquery-1.0.28.tar.gz
  • Upload date:
  • Size: 71.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.28.tar.gz
Algorithm Hash digest
SHA256 2790924f513a16624cf0b2ad326ada53dc81b82dd4fe30f7a765eb9a34ebb04d
MD5 37c954b18a3b73125e9dd5c3594b68c7
BLAKE2b-256 076b9e31f72d7e82617feeb4551ec59d912072b0ea811b8474e67129b553ed28

See more details on using hashes here.

File details

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

File metadata

  • Download URL: flowquery-1.0.28-py3-none-any.whl
  • Upload date:
  • Size: 122.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.28-py3-none-any.whl
Algorithm Hash digest
SHA256 d90ede5e56cd0e89d3d13d8d97d07850b0245351e25b55cb17f55d55ab146ffe
MD5 d825330b2272cc1ee47ba8bb18b34f48
BLAKE2b-256 5a825617c67addb534b1d6a3d9f5de1eb6272e9466608452157cd925ae616836

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