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.20.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.20-py3-none-any.whl (96.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: flowquery-1.0.20.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.20.tar.gz
Algorithm Hash digest
SHA256 40eae5686c0ab00f869b62130457eebc27b6e3a1434ad352e1053cae40217fc7
MD5 1b7e70516393678e49a4bafcbab3bf07
BLAKE2b-256 9ab1877f64b176a2505762db9479fe6569d489698f4917bb4dd6e6d5a6165b7c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: flowquery-1.0.20-py3-none-any.whl
  • Upload date:
  • Size: 96.9 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.20-py3-none-any.whl
Algorithm Hash digest
SHA256 6290f443cd3987afe49610a1bcd3b0699865a5b4fe74406559c56f88bb76e487
MD5 493a16ce24ac86287e795b786e3a1406
BLAKE2b-256 b99ce62af232fa9cc17ba0b4c244df78d7da694f75e7cff5114784ed22422f23

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