Metadata-Version: 2.4
Name: tonio-monkey
Version: 0.1.0
Summary: Monkey-patch utilities for TonIO runtime
Project-URL: Homepage, https://github.com/gi0baro/tonio-monkey
Project-URL: Funding, https://github.com/sponsors/gi0baro
Project-URL: Source, https://github.com/gi0baro/tonio-monkey
Project-URL: Issues, https://github.com/gi0baro/tonio-monkey/issues
Author-email: Giovanni Barillari <g@baro.dev>
License-Expression: BSD-3-Clause
License-File: LICENSE
Keywords: async,io
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: BSD License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Programming Language :: Python :: Free Threading :: 3 - Stable
Requires-Python: >=3.13
Requires-Dist: tonio~=0.5
Provides-Extra: httpx
Requires-Dist: httpx~=0.28.1; extra == 'httpx'
Provides-Extra: psycopg
Requires-Dist: psycopg~=3.3.3; extra == 'psycopg'
Provides-Extra: redis
Requires-Dist: redis~=7.4.0; extra == 'redis'
Provides-Extra: websockets
Requires-Dist: websockets~=16.0; extra == 'websockets'
Description-Content-Type: text/markdown

# TonIO-Monkey

Monkey-patch utilities for [TonIO](https://github.com/gi0baro/tonio).    
TonIO-Monkey lets you use popular asyncio packages with TonIO runtime.

> **Note:** the vast majority of code in this project is LLM generated.

## Available patches

TonIO-Monkey provides patches for the following packages:

- [httpx](https://pypi.org/project/httpx/) (*colored* only)
- [psycopg](https://pypi.org/project/psycopg/) (*colored* only)
- [redis](https://pypi.org/project/redis/) (*colored* only)
- [websockets](https://pypi.org/project/websockets/) (*colored* only)

## Installation

You can install TonIO-Monkey using pip or other package managers, specifying the Python packages you need patches for as extra dependencies:

    $ pip install tonio-monkey[httpx]

## Usage

Once you installed TonIO-Moneky with the relevant extras, you can simply import the target package from TonIO-Monkey:

```python
import tonio.colored as tonio
from tonio_monkey.colored import httpx

@tonio.main
async def main():
    async with httpx.AsyncClient() as client:
        r = await client.get('http://www.example.com')
```

## License

TonIO-Monkey is released under the BSD License.
