Flowity
Workflow language designed for LLM.
Installation
pip install flowity
Write flowity code
Hello, who are you?
$resp = $query()
$end($resp)
Run a workflow
import os
# === Setup Langchain ===
from langchain_openai import ChatOpenAI
os.environ["OPENAI_API_KEY"] = "sk-xxxx" # Your OpenAI api key
# Set OPENAI_API_BASE if you're using a reverse proxy
# os.environ["OPENAI_API_BASE"] = "https://api.openai.com/v1"
model = ChatOpenAI()
# === Write Flowity Code ===
code = """
Hello, who are you?
$str = $query()
$end($str)
"""
# === Run Flowity Code ===
from flowity.rt import rtime
rt = rtime.FlowityRuntime()
ret = rt.run(
code=code,
model=model
)
print(ret)
Release files for flowity 0.0.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 | |
|---|---|---|---|
| flowity-0.0.1.tar.gz | 5.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| flowity-0.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 11.9 kB
Release files / flowity-0.0.1.tar.gz
| Download URL | flowity-0.0.1.tar.gz |
|---|---|
| Size | 5.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
00e6863b858006d576ac1ad8acd59457b8f5a958c12bbed37c7eece8330c57cd
|
|
BLAKE2b-256 checksum How to use checksums |
c02783f934b4897f0be01ff8cfaf42581e92505f7fae3c57da52682188b1d6b7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.0 CPython/3.12.3
|
Release files / flowity-0.0.1-py3-none-any.whl
| Download URL | flowity-0.0.1-py3-none-any.whl |
|---|---|
| Size | 6.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9dae2f7a1f732855a9f68200a717bdb5f1de0a7366c58688f76fa928a54a39ae
|
|
BLAKE2b-256 checksum How to use checksums |
f7bf6043b1da1f450480480feae707d546c3752b5ba7289307019d98689d0e40
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.0 CPython/3.12.3
|