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.5.tar.gz
(54.2 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.5-py3-none-any.whl
(89.9 kB
view details)
File details
Details for the file flowquery-1.0.5.tar.gz.
File metadata
- Download URL: flowquery-1.0.5.tar.gz
- Upload date:
- Size: 54.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eb4dfc9e4441edb0e5315eff9aae013658d5b1b0ba1bb6312abfa4bc5a22237b
|
|
| MD5 |
eb8a94973605d73a510318a9e28f5f28
|
|
| BLAKE2b-256 |
d2d550c4907132fb3aae62187e98d315a2c835f2950709527141e40a0fe78982
|
File details
Details for the file flowquery-1.0.5-py3-none-any.whl.
File metadata
- Download URL: flowquery-1.0.5-py3-none-any.whl
- Upload date:
- Size: 89.9 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 |
9e164a728ab7ca1cec226b87ab05c4153bfad64d441e0bb951a5fa5a7a58407e
|
|
| MD5 |
35b57507280315a99ab9bd9fe8bf5e0e
|
|
| BLAKE2b-256 |
c5cb20d1dce084765593e9b6743c8323cee9b29c9819c4505277b6bd23e5782e
|