flowo
A Pythonic DSL for Flowgorithm (.fprg) that can simplify AI-assisted work by generating valid visual programs from Python code.
This thing is basically a port and redesign of the Rust crate fgrs.
AI & Vibecoding
Flowgorithm's native XML format is a nightmare for LLMs (like Gemini, Claude, or ChatGPT) to generate correctly. flowo provides a clean, type-safe Python DSL that is significantly easier for AI coding assistants to write.
By using flowo, you can "vibecode" your Flowgorithm assignments by prompting for Python code and letting the library handle the strict XML schema, reserved keywords, and variable declarations automatically.
Features
- Context Manager API: Natural Pythonic syntax for nested structures (
with flow.if_():,with flow.for_():). - Strict Validation: Prevents invalid Flowgorithm variable names and reserved keyword usage.
- Variable Tracking: Ensures variables are declared before use.
- Intrinsic Functions: Helper functions for all Flowgorithm built-ins (
Abs,Sin,Len,ToInteger, etc.). - Zero Dependencies: Built entirely on the Python Standard Library.
Installation
pip install flowo
Quick Start
from flowo import Flow, Type
flow = Flow("HelloWorld.fprg")
with flow.function("Main"):
flow.declare("name", Type.STRING)
flow.output('"What is your name?"')
flow.input("name")
flow.output('"Hello, " & name')
flow.to_fprg()
Advanced Usage
flowo supports all Flowgorithm features (that I've used during my uni study) including arrays, multi-argument declarations, and nested loops:
from flowo import Flow, Type, Sin, PI
flow = Flow()
with flow.function("Main"):
flow.declare("i, n", Type.INTEGER)
flow.declare("val", Type.REAL)
flow.assign("n", "10")
with flow.for_("i", "0", "n - 1"):
flow.assign("val", Sin(f"(i / n) * 2 * {PI}"))
flow.output("val")
flow.to_fprg("SineWave.fprg")
License
MIT
Metadata
Release files for flowo 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| flowo-0.1.1.tar.gz | 8.8 kB | Without provenance | Details for flowo-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| flowo-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for flowo-0.1.1-py3-none-any.whl |
Total release size: 17.5 kB
Release files / flowo-0.1.1.tar.gz
| Download URL | flowo-0.1.1.tar.gz |
|---|---|
| Size | 8.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3f23db2997f40309c699b85165621ca143a57edd83acfdc2bb5e5de42392e5fc
|
|
BLAKE2b-256 checksum How to use checksums |
5730360a506cfb6846da4265ceec24f00a7b1c41c362fa1955ad0c657e90e382
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.10.10 {"installer":{"name":"uv","version":"0.10.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / flowo-0.1.1-py3-none-any.whl
| Download URL | flowo-0.1.1-py3-none-any.whl |
|---|---|
| Size | 8.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0e436021eb8f37792d21e6af075b155f7c3a84db0ceeadf5a981d6d231a74ee4
|
|
BLAKE2b-256 checksum How to use checksums |
417ce36208976326a263fea41efd32cfe41b75bda7db9924106c3be45b419819
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.10.10 {"installer":{"name":"uv","version":"0.10.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for flowo 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.