semvec/pypi-packages huggingface dataset:
aiosox 0.3.0
⛓️ Combination of asyncapi(documentation) & socketio pub/sub using aiokafka as the client manager  multinode backend services
Requires Python: ==3.11.1
Keywords: fastapi,asyncapi,kafka,aiokafka,socketio,pubsub,websockets

![Sample image](https://gitlab.com/uploads/-/system/project/avatar/42327849/a5e01db694b47cd07018813ce821a4e1.png?width=64)


aiosox: <a href="https://gitlab.com/arieutils/aiosox">repo link </a>
=======================================
Quick example
-----------

can be installed using pip/poetry:

    poetry shell
     
    poetry run uvicorn example:app --port=8001
    
```python
from typing import List

from fastapi import FastAPI
from pydantic import BaseModel

from aiosox import SioAuth, SioNamespace, SocketIoServer


def get_app():
    applitcation = FastAPI(title="tester")
    return applitcation


app = get_app()

sio_server: SocketIoServer = SocketIoServer(app=app, kafka_url="localhost:29092")
user_namespapce: SioNamespace = SioNamespace("/user", socket_io_server=sio_server)
sio_server._sio.register_namespace(user_namespapce)


@app.on_event("startup")
async def on_start():
    await sio_server.start()


@app.on_event("shutdown")
async def on_shutdown():
    await sio_server.shutdown()


class UserY(BaseModel):
    name: str


class UserT(BaseModel):
    name: str
    what: List[UserY]


class OfferT(BaseModel):
    title: str


on_failed_emmiter = user_namespapce.create_emitter("failed", model=OfferT | UserT)


@user_namespapce.on(
    "submit",
    description="when user submits a form",
    payload_model=UserT | UserY,
    response_model=List[UserT],
    auth=SioAuth.jwt,
)
async def on_submit(sid, data):
    print(
        sid,
        data,
    )

```
django-debug-false-checker 0.0.4
Check that you're not changing the django DEBUG's setting by mistake.

# django-debug-false-checker

[![PyPI version](https://badge.fury.io/py/django-debug-false-checker.svg)](https://badge.fury.io/py/django-debug-false-checker)
[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](http://makeapullrequest.com)

`django-debug-false-checker` will check that you're not changing the django DEBUG's
setting by mistake.

## Installation

```yaml
- repo: https://github.com/Pierre-Sassoulas/django-debug-false-checker/
  rev: v0.0.4
  hooks:
    - id: django-debug-false-checker
```