{"id":19329983,"url":"https://github.com/asynq-io/eventiq-fastapi","last_synced_at":"2026-02-25T15:08:25.878Z","repository":{"id":252286255,"uuid":"838321131","full_name":"asynq-io/eventiq-fastapi","owner":"asynq-io","description":"FastAPI integration for eventiq","archived":false,"fork":false,"pushed_at":"2024-12-16T03:02:45.000Z","size":18,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-12T11:58:48.451Z","etag":null,"topics":["asyncio","eventiq","fastapi"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/asynq-io.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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-08-05T12:03:37.000Z","updated_at":"2024-09-25T21:15:49.000Z","dependencies_parsed_at":null,"dependency_job_id":"40e220d2-bdfe-411b-9d3a-a948a7c999ff","html_url":"https://github.com/asynq-io/eventiq-fastapi","commit_stats":null,"previous_names":["asynq-io/eventiq-fastapi"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/asynq-io/eventiq-fastapi","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asynq-io%2Feventiq-fastapi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asynq-io%2Feventiq-fastapi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asynq-io%2Feventiq-fastapi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asynq-io%2Feventiq-fastapi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/asynq-io","download_url":"https://codeload.github.com/asynq-io/eventiq-fastapi/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asynq-io%2Feventiq-fastapi/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265628106,"owners_count":23801133,"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","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":["asyncio","eventiq","fastapi"],"created_at":"2024-11-10T02:33:01.113Z","updated_at":"2025-10-29T05:06:24.857Z","avatar_url":"https://github.com/asynq-io.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"![Tests](https://github.com/asynq-io/eventiq-fastapi/workflows/Tests/badge.svg)\n![Build](https://github.com/asynq-io/eventiq-fastapi/workflows/Publish/badge.svg)\n![License](https://img.shields.io/github/license/asynq-io/eventiq-fastapi)\n![Mypy](https://img.shields.io/badge/mypy-checked-blue)\n[![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/charliermarsh/ruff/main/assets/badge/v1.json)](https://github.com/charliermarsh/ruff)\n[![security: bandit](https://img.shields.io/badge/security-bandit-yellow.svg)](https://github.com/PyCQA/bandit)\n![Python](https://img.shields.io/pypi/pyversions/eventiq-fastapi)\n![Format](https://img.shields.io/pypi/format/eventiq-fastapi)\n![PyPi](https://img.shields.io/pypi/v/eventiq-fastapi)\n\n# eventiq-fastapi\n\nFastAPI integration for eventiq\n\n\n## Installation\n\n```shell\npip install eventiq-fastapi\n```\n\n## Usage\n\n```python\nfrom fastapi import FastAPI\nfrom eventiq import Service, CloudEvent\nfrom eventiq_fastapi import ServiceDependency, get_service_lifespan\n\n\nservice = Service(...)\napp = FastAPI(lifespan=get_service_lifespan(service))\n\n# possibly in dirrerent file/router, service will be injected\n@app.post(\"/send-email\")\nasync def send_mail(service: ServiceDependency):\n    await service.send({\"some\": \"data\"}, topic=\"commands.send-email\")\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fasynq-io%2Feventiq-fastapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fasynq-io%2Feventiq-fastapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fasynq-io%2Feventiq-fastapi/lists"}