mirror of
https://github.com/hanzoai/flow.git
synced 2026-10-17 01:29:18 +00:00
Docs corpus (Langflow->Hanzo Flow, upstream URLs langflow-ai/langflow->hanzoai/ flow, docs.langflow.org->docs.hanzo.ai), starter-project template help-URLs, CI workflows, and test files. Remaining 'langflow' repo-wide is now dominated by LANGFLOW_* env-var names + langflow_ settings fields — the config-boundary layer deliberately preserved pending a coordinated FLOW_/HANZO_ alias-with-fallback (renaming them blind breaks every deployment).
18 lines
433 B
Python
18 lines
433 B
Python
import os
|
|
|
|
import requests
|
|
|
|
url = f"{os.getenv('LANGFLOW_URL', '')}/api/v1/projects/download/{os.getenv('PROJECT_ID', '')}"
|
|
|
|
headers = {
|
|
"accept": "application/json",
|
|
"x-api-key": f"{os.getenv('LANGFLOW_API_KEY', '')}",
|
|
}
|
|
|
|
response = requests.request("GET", url, headers=headers)
|
|
response.raise_for_status()
|
|
|
|
with open("flow-project.zip", "wb") as f:
|
|
f.write(response.content)
|
|
print("Saved response to flow-project.zip")
|