semvec/pypi-packages huggingface dataset:
asoke 0.0.2
A simple class-based dispatcher for ASGI apps and a quickstart wrapper
Requires Python: >=3.6

=====
Asoke
=====

Asoke is a simple class-based dispatcher for ASGI apps and a quickstart wrapper.
It is based on Hypercorn and Starlette.

Also it provides `quickstart` wrapper for ease of use.

Example:

.. code:: python

    from asoke import expose, quickstart
    from starlette.requests import Request
    from starlette.responses import JSONResponse

    class Items:

        @expose(methods='GET')
        async def get(self, request):
            items = []
            # get items somehow
            return JSONResponse(dict(status='success', items=items))

        @expose
        async def put(self, request):
            item = await request.json()
            # put item somehow
            return JSONResponse(dict(status='success'))

    class Entities:

        @expose(methods='GET')
        async def get(self, request):
            entities = []
            # get entities somehow
            return JSONResponse(dict(status='success', entities=entities))

        @expose
        async def put(self, request):
            entity = await request.json()
            # put entity somehow
            return JSONResponse(dict(status='success'))

    class Api:
        items = Items()
        entities = Entities()

    if __name__ == "__main__":
        quickstart(
            Api(),
            {
                'bind': ['127.0.0.1:12345']
                'alpn_protocols': ['h2']
            },
            base_uri = '/api'
        )

See also: https://declassed.art/en/blog/2022/07/06/asoke
fast-nbconvert 0.1.3
Blazingly fast jupyter notebook to python converter
Requires Python: >=3.8,<4.0

# Blazingly fast npconverter

Convert your Jupyter notebook files into Python source code

## Installing

```bash
pip install fast-nbconvert
```

## Usage:

```bash
fast_nbconvert [path to notebook] > [path to python file]
```

### You can also create a file:

```bash
fast_nbconvert [path to notebook] --make-file
```