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.12.tar.gz (57.1 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.12-py3-none-any.whl (93.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: flowquery-1.0.12.tar.gz
  • Upload date:
  • Size: 57.1 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.12.tar.gz
Algorithm Hash digest
SHA256 60b632635b97f1bced29750d441876a985aefbf2cd36c919130db3c98f60e1b0
MD5 a68941266acccf6171624b543308e4ad
BLAKE2b-256 b79bf8cc543f3639126253f08af2243cc8a840760337ee1fff76e12934a4bd26

See more details on using hashes here.

File details

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

File metadata

  • Download URL: flowquery-1.0.12-py3-none-any.whl
  • Upload date:
  • Size: 93.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.12-py3-none-any.whl
Algorithm Hash digest
SHA256 54176850ebff684327c91eac362c9b998b8ec19eb2c77c4acc72ddbdc36bf1d0
MD5 167b29139b84fc173edf6fdd21285cf6
BLAKE2b-256 985f49291f7352ddfd6a20e096beecd3cf34554dbaf97f61a4a37d7a702a46ed

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