{"id":20471306,"url":"https://github.com/flowiseai/flowisepy","last_synced_at":"2025-08-09T23:36:01.642Z","repository":{"id":255447252,"uuid":"852744161","full_name":"FlowiseAI/FlowisePy","owner":"FlowiseAI","description":null,"archived":false,"fork":false,"pushed_at":"2024-09-23T12:55:35.000Z","size":8,"stargazers_count":25,"open_issues_count":2,"forks_count":6,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-30T08:07:10.548Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/FlowiseAI.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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,"zenodo":null}},"created_at":"2024-09-05T10:52:22.000Z","updated_at":"2025-07-12T23:42:01.000Z","dependencies_parsed_at":null,"dependency_job_id":"12c9800a-af4e-48fd-a1b6-d54c435b9270","html_url":"https://github.com/FlowiseAI/FlowisePy","commit_stats":null,"previous_names":["flowiseai/flowisepy"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/FlowiseAI/FlowisePy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FlowiseAI%2FFlowisePy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FlowiseAI%2FFlowisePy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FlowiseAI%2FFlowisePy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FlowiseAI%2FFlowisePy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FlowiseAI","download_url":"https://codeload.github.com/FlowiseAI/FlowisePy/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FlowiseAI%2FFlowisePy/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269654009,"owners_count":24454317,"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-09T02:00:10.424Z","response_time":111,"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":[],"created_at":"2024-11-15T14:15:44.888Z","updated_at":"2025-08-09T23:36:01.631Z","avatar_url":"https://github.com/FlowiseAI.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Flowise SDK - Python\n\nThe **Flowise SDK** for Python provides an easy way to interact with the Flowise API for creating predictions, supporting both streaming and non-streaming responses. This SDK allows users to create predictions with customizable options, including history, file uploads, and more.\n\n## Features\n\n- Support for streaming and non-streaming API responses\n- Ability to include message history and file uploads\n\n## Installation\n\nYou can install the SDK via pip:\n\n```bash\npip install flowise\n```\n\nUpgrade version:\n\n```bash\npip install --upgrade flowise\n```\n\n## Example\n\n```py\nfrom flowise import Flowise, PredictionData, IMessage, IFileUpload\n\ndef example_non_streaming():\n    # Initialize Flowise client\n    client = Flowise()\n\n    # Create a prediction without streaming\n    completion = client.create_prediction(\n        PredictionData(\n            chatflowId=\"abc\",\n            question=\"What is the capital of France?\",\n            streaming=False  # Non-streaming mode\n        )\n    )\n\n    # Process and print the full response\n    for response in completion:\n        print(\"Non-streaming response:\", response)\n\ndef example_streaming():\n    # Initialize Flowise client\n    client = Flowise()\n\n    # Create a prediction with streaming enabled\n    completion = client.create_prediction(\n        PredictionData(\n            chatflowId=\"abc\",\n            question=\"Tell me a joke!\",\n            streaming=True  # Enable streaming\n        )\n    )\n\n    # Process and print each streamed chunk\n    print(\"Streaming response:\")\n    for chunk in completion:\n        print(chunk)\n\n\nif __name__ == \"__main__\":\n    # Run the non-streaming example\n    example_non_streaming()\n\n    # Run the streaming example\n    example_streaming()\n```\n\n## Build \u0026 Publish\n\n1. Increment version on `setup.py`\n1. `pip install wheel`\n2. `python setup.py sdist bdist_wheel`\n3. `twine upload --skip-existing dist/*`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflowiseai%2Fflowisepy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fflowiseai%2Fflowisepy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflowiseai%2Fflowisepy/lists"}