{"id":16202077,"url":"https://github.com/rockchinq/flowity","last_synced_at":"2025-08-29T17:38:14.960Z","repository":{"id":244049233,"uuid":"813655104","full_name":"RockChinQ/Flowity","owner":"RockChinQ","description":"A Scripting Language for Building LLM Apps","archived":false,"fork":false,"pushed_at":"2024-06-12T13:17:36.000Z","size":10,"stargazers_count":7,"open_issues_count":2,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-08-18T12:44:58.711Z","etag":null,"topics":["langchain","llm","programming-language"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/RockChinQ.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-06-11T13:44:34.000Z","updated_at":"2025-02-25T06:59:52.000Z","dependencies_parsed_at":"2024-06-12T16:52:50.046Z","dependency_job_id":"3053b8ce-3de4-4068-8df1-909802a89a48","html_url":"https://github.com/RockChinQ/Flowity","commit_stats":null,"previous_names":["rockchinq/flowity"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/RockChinQ/Flowity","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RockChinQ%2FFlowity","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RockChinQ%2FFlowity/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RockChinQ%2FFlowity/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RockChinQ%2FFlowity/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RockChinQ","download_url":"https://codeload.github.com/RockChinQ/Flowity/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RockChinQ%2FFlowity/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272733231,"owners_count":24984260,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-29T02:00:10.610Z","response_time":87,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["langchain","llm","programming-language"],"created_at":"2024-10-10T09:45:25.681Z","updated_at":"2025-08-29T17:38:14.934Z","avatar_url":"https://github.com/RockChinQ.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Flowity\n\nProgramming language for building LLM workflows.  \nand its runtime implementation in Python.\n\n## Installation\n\n```bash\npip install flowity\n```\n\n## Write flowity code\n\n```flowity\nHello, who are you?\n\n$resp = $query()\n$end($resp)\n```\n\nAny statements not starting with `$` are considered as prompt, and will be sent to the model while calling `$query()`, the response will be stored in the variable `$resp`.  \nPrompt will be cached until the next `$query()` call.\n\n\u003e Syntax details can be found [here](docs/Syntax.md).\n\n## Run a workflow\n\n```python\nimport os\n\n# === Setup Langchain ===\n\nfrom langchain_openai import ChatOpenAI\n\nos.environ[\"OPENAI_API_KEY\"] = \"sk-xxxx\" # Your OpenAI api key\n# Set OPENAI_API_BASE if you're using a reverse proxy\n# os.environ[\"OPENAI_API_BASE\"] = \"https://api.openai.com/v1\"\n\nmodel = ChatOpenAI()\n\n# === Write Flowity Code ===\n\ncode = \"\"\"\nHello, who are you?\n\n$str = $query()\n$end($str)\n\"\"\"\n\n# === Run Flowity Code ===\n\nfrom flowity.rt import rtime\n\nrt = rtime.FlowityRuntime()\n\nret = rt.run(\n    code=code,\n    model=model\n)\n\nprint(ret)\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frockchinq%2Fflowity","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frockchinq%2Fflowity","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frockchinq%2Fflowity/lists"}