Metadata-Version: 2.4
Name: pynes_io
Version: 1.0.0
Summary: easy standard io line buffering
Project-URL: Homepage, https://github.com/Auttcast/pynes
Project-URL: Issues, https://github.com/Auttcast/pynes/issues
Author-email: Brandon McCartney <auttcast@gmail.com>
License-Expression: MIT
License-File: LICENSE.txt
Classifier: Topic :: Software Development :: Libraries
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Topic :: Utilities
Requires-Python: >=3.8
Description-Content-Type: text/markdown

```
pip install pynes (todo)
```

## Hack your console with Pynes
An easy-to-use api for accessing python's sys.stdio and sys.stderr streams. Consistently line-buffered with asynchronous support.

Pynes has built-in support for windows with the msvcrt library.

### Write to std io

```python
from pynes.core import Writer

def synchronousWriter():
  writeline = Writer().createStdIoWriter()
  writeline("hello io")

async def asynchronousWriter():
  writeline = Writer().createStdIoWriterAsync()
  await writeline("hello io")

```

### Read from std io

```python
from pynes.core import Reader

def synchronousReader():
  readline = Reader().create()
  for line in readline:
    print(line)

async def asynchronousReader():
  readline = await Reader().createAsync()
  async for line in readline():
    print(line)

```

### Remember, you're just a number

  ![x](https://raw.githubusercontent.com/Auttcast/pynes/refs/heads/master/console.png)


### Built on 

Python 3.12.8

pytest 8.3.4
