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.11.tar.gz
(56.5 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.11.tar.gz.
File metadata
- Download URL: flowquery-1.0.11.tar.gz
- Upload date:
- Size: 56.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d30b9e4bee6cbc128e71f6980776d5620d9de05ab8e533887a9be71b6bd3c53c
|
|
| MD5 |
66ada8605c92335f20d3ee39e77bb12d
|
|
| BLAKE2b-256 |
363ee7c86b8a24e7c30992998afb297d3655f302a036627b5d4c5ff23e92a865
|
File details
Details for the file flowquery-1.0.11-py3-none-any.whl.
File metadata
- Download URL: flowquery-1.0.11-py3-none-any.whl
- Upload date:
- Size: 92.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 |
1b730ff15938e215f9a6b7145ad31995296ac50c4ef64cbe6ff4424e358cd672
|
|
| MD5 |
50cf368ff316bd54f903937e359ef7c0
|
|
| BLAKE2b-256 |
07158b5fe7a4ef71a7b5065d9198b69908b075e5c2633577f6cc34d4f20aa4e3
|