Name | eventiq-fastapi JSON |
Version |
0.1.0
JSON |
| download |
home_page | None |
Summary | FastAPI integration for eventiq |
upload_time | 2024-08-08 22:12:50 |
maintainer | None |
docs_url | None |
author | None |
requires_python | >=3.9 |
license | None |
keywords |
eventiq
fastapi
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
![Tests](https://github.com/asynq-io/eventiq-fastapi/workflows/Tests/badge.svg)
![Build](https://github.com/asynq-io/eventiq-fastapi/workflows/Publish/badge.svg)
![License](https://img.shields.io/github/license/asynq-io/eventiq-fastapi)
![Mypy](https://img.shields.io/badge/mypy-checked-blue)
[![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/charliermarsh/ruff/main/assets/badge/v1.json)](https://github.com/charliermarsh/ruff)
[![security: bandit](https://img.shields.io/badge/security-bandit-yellow.svg)](https://github.com/PyCQA/bandit)
![Python](https://img.shields.io/pypi/pyversions/eventiq-fastapi)
![Format](https://img.shields.io/pypi/format/eventiq-fastapi)
![PyPi](https://img.shields.io/pypi/v/eventiq-fastapi)
# eventiq-fastapi
FastAPI integration for eventiq
## Installation
```shell
pip install eventiq-fastapi
```
## Usage
```python
from fastapi import FastAPI
from eventiq import Service, CloudEvent
from eventiq_fastapi import ServiceDependency, get_service_lifespan
service = Service(...)
app = FastAPI(lifespan=get_service_lifespan(service))
# possibly in dirrerent file/router, service will be injected
@app.post("/send-email")
async def send_mail(service: ServiceDependency):
await service.send({"some": "data"}, topic="commands.send-email")
```
Raw data
{
"_id": null,
"home_page": null,
"name": "eventiq-fastapi",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.9",
"maintainer_email": null,
"keywords": "eventiq, fastapi",
"author": null,
"author_email": "RaRhAeu <rarha_eu@protonmail.com>",
"download_url": "https://files.pythonhosted.org/packages/1b/78/ed50ac07e7039c0de87d09fe64c0291174d0664b168ac5a66f812d9676cf/eventiq_fastapi-0.1.0.tar.gz",
"platform": null,
"description": "![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",
"bugtrack_url": null,
"license": null,
"summary": "FastAPI integration for eventiq",
"version": "0.1.0",
"project_urls": {
"Documentation": "https://github.com/asynq-io/eventiq-fastapi#readme",
"Issues": "https://github.com/asynq-io/eventiq-fastapi/issues",
"Source": "https://github.com/asynq-io/eventiq-fastapi"
},
"split_keywords": [
"eventiq",
" fastapi"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "6d51f3e8885ba79701a0264031c8fef93628d471284564b8ce55fbcb7e8cb519",
"md5": "05f472cc416b218986bb5b8d1fd12886",
"sha256": "c74ee8509a9d4bbb2a4de7b2b037f2b71f3c8493b1d61227b11cd2c6728a2c02"
},
"downloads": -1,
"filename": "eventiq_fastapi-0.1.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "05f472cc416b218986bb5b8d1fd12886",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.9",
"size": 8810,
"upload_time": "2024-08-08T22:12:48",
"upload_time_iso_8601": "2024-08-08T22:12:48.814138Z",
"url": "https://files.pythonhosted.org/packages/6d/51/f3e8885ba79701a0264031c8fef93628d471284564b8ce55fbcb7e8cb519/eventiq_fastapi-0.1.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "1b78ed50ac07e7039c0de87d09fe64c0291174d0664b168ac5a66f812d9676cf",
"md5": "6777a08984b4b1470d8d822fa804e6c2",
"sha256": "eb64129444afe139102e68c8ace1035d92b6115db614d8d50f640a0e253abcf3"
},
"downloads": -1,
"filename": "eventiq_fastapi-0.1.0.tar.gz",
"has_sig": false,
"md5_digest": "6777a08984b4b1470d8d822fa804e6c2",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.9",
"size": 9919,
"upload_time": "2024-08-08T22:12:50",
"upload_time_iso_8601": "2024-08-08T22:12:50.152814Z",
"url": "https://files.pythonhosted.org/packages/1b/78/ed50ac07e7039c0de87d09fe64c0291174d0664b168ac5a66f812d9676cf/eventiq_fastapi-0.1.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-08-08 22:12:50",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "asynq-io",
"github_project": "eventiq-fastapi#readme",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "eventiq-fastapi"
}