semvec/pypi-packages huggingface dataset:
anycorn 0.18.2
A fork of Hypercorn that uses AnyIO
Requires Python: >=3.9

# Anycorn

Anycorn is a fork of [Hypercorn](https://github.com/pgjones/hypercorn) where `asyncio` and
[Trio](https://trio.readthedocs.io) compatibility is delegated to AnyIO, instead of having a
separate code base for each. Anycorn forked from version 0.16.0 of Hypercorn. This fork supports [tls extension](https://asgi.readthedocs.io/en/latest/specs/tls.html).

## Quickstart

Anycorn can be installed via [pip](https://docs.python.org/3/installing/index.html):

```bash
pip install anycorn
```

and requires Python 3.8 or higher.

With Anycorn, installed ASGI frameworks (or apps) can be served via the command line:

```bash
anycorn module:app
```

Alternatively, Anycorn can be used programatically:

```py
import anyio
from anycorn.config import Config
from anycorn import serve

from module import app

anyio.run(serve, app, Config())
```

See Hypercorn's
[documentation](https://hypercorn.readthedocs.io/en/latest/how_to_guides/api_usage.html) for more
details.
pywidgy 0.1.2
A lightweight widget framework for Python terminal apps
Requires Python: >=3.9

# pywidgy
A lightweight, composable widget framework for Python terminal apps.

![Example image](docs/demo.gif)

## Install
```bash
pip install pywidgy
```

## Quickstart
Here is a simple example to create a dialog for with checkboxes. For more examples see `examples/` directory.
```python
#!/usr/bin/env python3
import sys

import pywidgy
from pywidgy import Checkboxes

def main() -> int:
    pywidgy.init()

    widget=Checkboxes(
        title="Select your xepa:",
        options=["apa", "bepa", "cepa", "depa", "eepa", "fepa"],
        size=(80, 100),
        exit_cb=pywidgy.close,
    )
    pywidgy.spawn(widget)
    pywidgy.run()
    selected=widget.selected
    print(f"You selected {selected}")
    return 0


if __name__ == "__main__":
    sys.exit(main())
```

## Development
Using nix it is very easy to start developing. Just do
```
nix develop
```
to get the development environment up and running. From within the development environment you can run use `tox` build targets to run linter, formatter, mypy, etc.
To run all statical code analysis, run
```
tox -e lint
```
and to format the code, run
```
tox -e format
```

## Contributing
Contributions, reporting issues and feature requests are welcome!