Metadata-Version: 2.4
Name: appywrite
Version: 0.1.0
Summary: A FastAPI/ASGI bridge for Appwrite Functions
Author-email: TechAtlas <techatlas@example.com>
License: MIT
Requires-Dist: fastapi
Requires-Dist: uvicorn
Provides-Extra: test
Requires-Dist: httpx; extra == 'test'
Requires-Dist: pytest; extra == 'test'
Requires-Dist: pytest-asyncio; extra == 'test'
Description-Content-Type: text/markdown

# APPyWrite 🚀

APPyWrite is a lightweight bridge that allows you to run **FastAPI** (or any ASGI-compatible application) inside **Appwrite Functions**.

## Features

- ✅ **ASGI Bridge**: Seamlessly translates Appwrite `context.req` to ASGI Scope.
- ✅ **Async Support**: Built for Appwrite's latest async runtimes.
- ✅ **Automatic Mapping**: Translates FastAPI responses back to `context.res` (JSON, Text, etc.).

## Installation

```bash
pip install appywrite
```

## Quick Start

Create a `main.py` for your Appwrite function:

```python
from fastapi import FastAPI
from appywrite import AppyWriteBridge

app = FastAPI()

@app.get("/")
async def hello():
    return {"message": "Hello from FastAPI on Appwrite!"}

bridge = AppyWriteBridge(app)

# This is the entry point for Appwrite
async def main(context):
    return await bridge.handle(context)
```

## License

MIT
