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.8.tar.gz
(54.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
flowquery-1.0.8-py3-none-any.whl
(90.0 kB
view details)
File details
Details for the file flowquery-1.0.8.tar.gz.
File metadata
- Download URL: flowquery-1.0.8.tar.gz
- Upload date:
- Size: 54.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 |
7eeba251f01f0e32c641bb2d6ce2cbb29bc21ddef334c01d908abc67e58e71c8
|
|
| MD5 |
336444126ab5c4bbafd15f4b2e2f5dbc
|
|
| BLAKE2b-256 |
9394e70a887ef737e03fa9d3e26aa90cf261f90bd744fc36fd30d1e6397a1174
|
File details
Details for the file flowquery-1.0.8-py3-none-any.whl.
File metadata
- Download URL: flowquery-1.0.8-py3-none-any.whl
- Upload date:
- Size: 90.0 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 |
151141a281eb20ddf465053b7c8fc5a24dfc9e50c2db78da454bc4b9b82e8278
|
|
| MD5 |
9c0d6990a4e714ba503d736f20886b5d
|
|
| BLAKE2b-256 |
fabebbb1f8e3ddc04b9881c1e1335364f2b675f9bda0dc64ef120f16c72bb6a6
|