{"id":31703813,"url":"https://github.com/beam-cloud/fastloop","last_synced_at":"2025-10-17T22:26:55.219Z","repository":{"id":314486948,"uuid":"1016058212","full_name":"beam-cloud/fastloop","owner":"beam-cloud","description":"A Python package for deploying stateful loops.","archived":false,"fork":false,"pushed_at":"2025-10-03T16:59:43.000Z","size":952,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-10-03T18:47:23.045Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://beam.cloud","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/beam-cloud.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-07-08T12:31:20.000Z","updated_at":"2025-10-03T16:59:46.000Z","dependencies_parsed_at":"2025-09-12T19:56:52.161Z","dependency_job_id":"74332b55-895b-4fc3-a6bd-2eb2df5cc209","html_url":"https://github.com/beam-cloud/fastloop","commit_stats":null,"previous_names":["beam-cloud/fastloop"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/beam-cloud/fastloop","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beam-cloud%2Ffastloop","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beam-cloud%2Ffastloop/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beam-cloud%2Ffastloop/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beam-cloud%2Ffastloop/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/beam-cloud","download_url":"https://codeload.github.com/beam-cloud/fastloop/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beam-cloud%2Ffastloop/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279000779,"owners_count":26082851,"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-10-08T02:00:06.501Z","response_time":56,"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":"2025-10-08T22:44:37.566Z","updated_at":"2025-10-08T22:44:41.405Z","avatar_url":"https://github.com/beam-cloud.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# FastLoop\n\nA Python package for building and deploying stateful loops. We use this at [beam.cloud](https://www.beam.cloud) to deploy agents.\n\n## Installation\n\n```bash\npip install fastloop\n```\n\n## Usage\n\n### Basic Example\n\n```python\nfrom fastloop import FastLoop, LoopContext, LoopEvent\n\napp = FastLoop(name=\"my-app\")\n\n@app.event(\"user_message\")\nclass UserMessage(LoopEvent):\n    user_id: str\n    message: str\n\n@app.loop(name=\"chat\", start_event=UserMessage)\nasync def chat_loop(context: LoopContext):\n    user_msg = await context.wait_for(UserMessage, timeout=5.0)\n    print(f\"User {user_msg.user_id} sent a message: {user_msg.message}\")\n    \n    # Your loop logic here\n\n    # If you want to stop the loop\n    context.stop()\n\n    # If you want to pause the loop\n    context.pause()\n\n    # By default, we just run it again\n\nif __name__ == \"__main__\":\n    app.run(port=8000)\n```\n\n## Development\n\nThis project uses `uv` for dependency management.\n\n```bash\n# Install dependencies\nuv sync\n\n# Run tests\nuv run pytest\n\n# Build package\nuv build\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbeam-cloud%2Ffastloop","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbeam-cloud%2Ffastloop","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbeam-cloud%2Ffastloop/lists"}