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.10.tar.gz
(55.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
File details
Details for the file flowquery-1.0.10.tar.gz.
File metadata
- Download URL: flowquery-1.0.10.tar.gz
- Upload date:
- Size: 55.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 |
05b066ed5e77dcaebc4a1011b82d601d5e76a3cc01f9136057f30b9345d8d6cd
|
|
| MD5 |
0221367b85970f89d775f1fb76f59c1c
|
|
| BLAKE2b-256 |
d0a840a22e801b52f25f908dca5edba338c7e0d44567f9bd3fc73a9c162e2592
|
File details
Details for the file flowquery-1.0.10-py3-none-any.whl.
File metadata
- Download URL: flowquery-1.0.10-py3-none-any.whl
- Upload date:
- Size: 91.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 |
d215088aaa8120a345dbc56871c89c71fc8f1785d663af8cea7adc87dc04c693
|
|
| MD5 |
58e9fcd66879d62601813420e10f8d24
|
|
| BLAKE2b-256 |
db3fed5bbc064eca93f6b92b502f7fe993925ed7e5a4705c73574ca9af5675dd
|