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
Release history Release notifications | RSS feed
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.13.tar.gz
(57.3 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file flowquery-1.0.13.tar.gz.
File metadata
- Download URL: flowquery-1.0.13.tar.gz
- Upload date:
- Size: 57.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
845759c2129684537439927714242ed71993a2c30062b41c6fcef1fde23b54c2
|
|
| MD5 |
fe3788547d9cbe60436c6c4133e81c27
|
|
| BLAKE2b-256 |
278bf0586f9c0a8eab00efc3271994241b5b960bcce6335a395cdd1f32a0825e
|
File details
Details for the file flowquery-1.0.13-py3-none-any.whl.
File metadata
- Download URL: flowquery-1.0.13-py3-none-any.whl
- Upload date:
- Size: 93.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
446e65da6c57e42bb7209fd305582d6ab2633a8dd4c30fc683c9f9dc783a1622
|
|
| MD5 |
56d27f2a6a7f9fe62e84b19e42bd6d16
|
|
| BLAKE2b-256 |
80e5f9c4b16efd4563e44d6696a21b752e5bc7c1436601e2034168ac9619f0f8
|