---
title: AioFauna
---
# AioFauna
🚀 Introducing aiofauna: A full-stack framework built on top of Aiohttp, Pydantic and FaunaDB.
🔥 Inspired by FastAPI focuses on Developer Experience, Productivity and Versatility.
🌟 Features:
✅ Supports Python 3.7+, comes with an opinionated ODM (Object Document Mapper) out of the box for FaunaDB that abstracts out complex FQL expressions into pythonic, fully typed asynchronous methods for all CRUD operations.
✅ Powerful and Scalable: Being built on top of Aiohttp an asyncio based http server/client and FaunaDB an scalable serverless database for modern applications allows for powerful and seamless integrations.
✅ Performant: As a framework built on top of Aiohttp it leverages the power of asyncio and the fastest python `APIClient` built on top of aiohttp with Lazy Loading and session sharing, plus the ubiquiness of FaunaDB to achieve high performance.
✅ Automatic Swagger UI generation: Automatic generation of interactive Swagger UI documentation for instant testing of your `APIServer`, exposed at the `/docs` path.
✅ SSE (Server Sent Events): Built-in support for SSE (Server Sent Events) for real-time streaming of data from FaunaDB to your application, syntactic sugar through the `@sse` decorator.
✅ Websockets: Built-in support for Websockets for real-time bidirectional communication between your application and the resources served by AioFauna `APIServer`, syntactic sugar through the `@websocket` decorator.
✅ Robust data validation: Utilizes the rich features of Pydantic for data validation and serialization.
✅ OX: Thanks to `rich` and `aiohttp` you will get rich logging and error handling out of the box.
✅ Auto-provisioning: Automatic management of indexes, unique indexes, and collections with `FaunaModel` ODM.
✅ Full JSON communication: Focus on your data, don't worry about the communication protocol. Your `APIServer` will receive and return JSON.
✅ Inspired by fastapi, you will work with almost the same syntax and features like path operations, path parameters, query parameters, request body, status codes, `/docs` automatic interactive API documentation, and decorated view functions and automatic serialization and deserialization of your data.
💡 With aiofauna, you can build fast, scalable, and reliable modern applications, avoiding decision fatigue and focusing on what really matters, your data and your business logic.
📚 Check out the aiofauna library, and start building your next-gen applications today! 🚀
#Python #FaunaDB #Async #Pydantic #aiofauna
⚙️ If you are using a synchronous framework check out [Faudantic](https://github.com/obahamonde/faudantic) for a similar experience with FaunaDB and Pydantic.
📦 [PyPi](https://pypi.org/project/aiofauna/)
📦 [Demo](https://www.aiofauna.com)
📦 [GitHub](https://github.com/obahamonde/aiofauna)
📦 [Documentation](https://docs.aiofauna.com)
Raw data
{
"_id": null,
"home_page": "https://github.com/obahamonde/aiofauna",
"name": "aiofauna",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.8,<4.0",
"maintainer_email": "",
"keywords": "",
"author": "Oscar Bahamonde",
"author_email": "oscar.bahamonde.dev@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/c2/78/24165473d28e5fcb15d2d2ad0780f53c2d3fd503a4f9876d9b9a3d3b212b/aiofauna-0.2.8.tar.gz",
"platform": null,
"description": "---\ntitle: AioFauna\n---\n\n# AioFauna\n\n\ud83d\ude80 Introducing aiofauna: A full-stack framework built on top of Aiohttp, Pydantic and FaunaDB.\n\n\ud83d\udd25 Inspired by FastAPI focuses on Developer Experience, Productivity and Versatility.\n\n\ud83c\udf1f Features:\n\n\u2705 Supports Python 3.7+, comes with an opinionated ODM (Object Document Mapper) out of the box for FaunaDB that abstracts out complex FQL expressions into pythonic, fully typed asynchronous methods for all CRUD operations.\n\n\u2705 Powerful and Scalable: Being built on top of Aiohttp an asyncio based http server/client and FaunaDB an scalable serverless database for modern applications allows for powerful and seamless integrations.\n\n\u2705 Performant: As a framework built on top of Aiohttp it leverages the power of asyncio and the fastest python `APIClient` built on top of aiohttp with Lazy Loading and session sharing, plus the ubiquiness of FaunaDB to achieve high performance.\n\n\u2705 Automatic Swagger UI generation: Automatic generation of interactive Swagger UI documentation for instant testing of your `APIServer`, exposed at the `/docs` path.\n\n\u2705 SSE (Server Sent Events): Built-in support for SSE (Server Sent Events) for real-time streaming of data from FaunaDB to your application, syntactic sugar through the `@sse` decorator.\n\n\u2705 Websockets: Built-in support for Websockets for real-time bidirectional communication between your application and the resources served by AioFauna `APIServer`, syntactic sugar through the `@websocket` decorator.\n\n\u2705 Robust data validation: Utilizes the rich features of Pydantic for data validation and serialization.\n\n\u2705 OX: Thanks to `rich` and `aiohttp` you will get rich logging and error handling out of the box.\n\n\u2705 Auto-provisioning: Automatic management of indexes, unique indexes, and collections with `FaunaModel` ODM.\n\n\u2705 Full JSON communication: Focus on your data, don't worry about the communication protocol. Your `APIServer` will receive and return JSON.\n\n\u2705 Inspired by fastapi, you will work with almost the same syntax and features like path operations, path parameters, query parameters, request body, status codes, `/docs` automatic interactive API documentation, and decorated view functions and automatic serialization and deserialization of your data.\n\n\ud83d\udca1 With aiofauna, you can build fast, scalable, and reliable modern applications, avoiding decision fatigue and focusing on what really matters, your data and your business logic.\n\n\ud83d\udcda Check out the aiofauna library, and start building your next-gen applications today! \ud83d\ude80\n\n#Python #FaunaDB #Async #Pydantic #aiofauna\n\n\u2699\ufe0f If you are using a synchronous framework check out [Faudantic](https://github.com/obahamonde/faudantic) for a similar experience with FaunaDB and Pydantic.\n\n\ud83d\udce6 [PyPi](https://pypi.org/project/aiofauna/)\n\n\ud83d\udce6 [Demo](https://www.aiofauna.com)\n\n\ud83d\udce6 [GitHub](https://github.com/obahamonde/aiofauna)\n\n\ud83d\udce6 [Documentation](https://docs.aiofauna.com)",
"bugtrack_url": null,
"license": "MIT",
"summary": "Full Stack Serverless Framework",
"version": "0.2.8",
"project_urls": {
"Homepage": "https://github.com/obahamonde/aiofauna",
"Repository": "https://github.com/obahamonde/aiofauna"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "8a0c823d6775b9cb24bedd7ebd1fb028292f775f461f445686a5d8e93088fbbc",
"md5": "9e8b651a1b9d68a5c2a5961c51a9216b",
"sha256": "b20d2ce0acec2249f441e2e1a2d8e25404e42473aafeef959ccc012084275744"
},
"downloads": -1,
"filename": "aiofauna-0.2.8-py3-none-any.whl",
"has_sig": false,
"md5_digest": "9e8b651a1b9d68a5c2a5961c51a9216b",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.8,<4.0",
"size": 39875,
"upload_time": "2023-10-17T18:49:50",
"upload_time_iso_8601": "2023-10-17T18:49:50.533054Z",
"url": "https://files.pythonhosted.org/packages/8a/0c/823d6775b9cb24bedd7ebd1fb028292f775f461f445686a5d8e93088fbbc/aiofauna-0.2.8-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "c27824165473d28e5fcb15d2d2ad0780f53c2d3fd503a4f9876d9b9a3d3b212b",
"md5": "ead8efa2763410dcd9c67432e28f6f9f",
"sha256": "b4a41642c9485a0a1ed37b414199e821a8dafc254f98285afe5ab899a3551f93"
},
"downloads": -1,
"filename": "aiofauna-0.2.8.tar.gz",
"has_sig": false,
"md5_digest": "ead8efa2763410dcd9c67432e28f6f9f",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8,<4.0",
"size": 31886,
"upload_time": "2023-10-17T18:50:40",
"upload_time_iso_8601": "2023-10-17T18:50:40.256409Z",
"url": "https://files.pythonhosted.org/packages/c2/78/24165473d28e5fcb15d2d2ad0780f53c2d3fd503a4f9876d9b9a3d3b212b/aiofauna-0.2.8.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-10-17 18:50:40",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "obahamonde",
"github_project": "aiofauna",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"requirements": [
{
"name": "aiofauna",
"specs": []
},
{
"name": "swagchain",
"specs": []
},
{
"name": "langchain",
"specs": []
}
],
"lcname": "aiofauna"
}