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.21.tar.gz (59.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.21-py3-none-any.whl (97.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: flowquery-1.0.21.tar.gz
  • Upload date:
  • Size: 59.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.21.tar.gz
Algorithm Hash digest
SHA256 4c434ad0a3288cdf2e1e1ee234803c13eb55ade7aea796518a0664a632840f4b
MD5 ffe5dbba7ec09915373aad03153467a5
BLAKE2b-256 18f02c7f964ccedc82cd4cc7fe71c11af59c7c8769c9c9d5145745052447cd2d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: flowquery-1.0.21-py3-none-any.whl
  • Upload date:
  • Size: 97.0 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.21-py3-none-any.whl
Algorithm Hash digest
SHA256 4d1a61ab30ffaf6a21933ff22c5cbefe57256590724868b952783ba273b75519
MD5 4dc9eaf514d763777267e14150a757cf
BLAKE2b-256 e758cf3dd2700d14c84b36272aab69fbb0f6aa6bf1a37e2a1d97b80f7702567a

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