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.27.tar.gz (71.6 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.27-py3-none-any.whl (122.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: flowquery-1.0.27.tar.gz
  • Upload date:
  • Size: 71.6 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.27.tar.gz
Algorithm Hash digest
SHA256 649ae13766c5710cbb2b1f4d275c790e0b9681ed7d4954da1e5276d611e7ec4c
MD5 c926bfec6d79cffb63b3128b1fdcdfcb
BLAKE2b-256 479df5047158c026675fe5a67afac60c524be071fce31d22fc1c4971c138bb5b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: flowquery-1.0.27-py3-none-any.whl
  • Upload date:
  • Size: 122.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.27-py3-none-any.whl
Algorithm Hash digest
SHA256 a84d6152eb489c42e65332ea691e56afaffce5574025f11c5909bc3f1cfa1e97
MD5 c39dc0e7fed837dea9a616169cbfd91a
BLAKE2b-256 267ca201f320236cfd9fb5f472172896b7017d7fd69368fc72dcc68c9c20e3cc

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