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.32.tar.gz
(73.7 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
flowquery-1.0.32-py3-none-any.whl
(126.4 kB
view details)
File details
Details for the file flowquery-1.0.32.tar.gz.
File metadata
- Download URL: flowquery-1.0.32.tar.gz
- Upload date:
- Size: 73.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4f3363834717285cbd81e22ea5d8afe2389f3f42df7bd697e92271c312e48716
|
|
| MD5 |
0d2bfeed8919d3f3cb15d109bba91f0a
|
|
| BLAKE2b-256 |
b0339660548d20fdc33ee9c94d4ed130f90dc1a5ee3f1d0995b7f3d5db030118
|
File details
Details for the file flowquery-1.0.32-py3-none-any.whl.
File metadata
- Download URL: flowquery-1.0.32-py3-none-any.whl
- Upload date:
- Size: 126.4 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 |
396f1ce09f12974b7dbc4f5306b1d81c06c7b793e84b62387f31d8cce99e227e
|
|
| MD5 |
32cf6726383f463180d6b69b448b3b35
|
|
| BLAKE2b-256 |
23ced462469f2ea03c749c71e60357df384543b72ea3269a64f694c1ebaf46b1
|