Metadata-Version: 2.1
Name: stdpipeIO
Version: 0.1.2
Summary: A simple decorator for receiving and sending data via the standard pipe
Author: Greendog
Author-email: x6reend0g@foxmail.com
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown

# stdpipeIO

stdpipeIO is a simple Python decorator for receiving and sending data via the standard pipe. It allows you to easily read input from standard input (stdin) and write output to standard output (stdout).

## Installation

To install stdpipeIO, you can use the following command:

```sh
pip install stdpipeIO
```

## Usage
To use the pipe_io decorator, simply import it and apply it to your function. The decorated function will read input from stdin, process it, and write the result to stdout.

```sh
from src.pipeio import pipe_io

@pipe_io
def process_input(input_data):
    return input_data.upper()

if __name__ == '__main__':
    process_input()
```

You can then run your script and provide input via stdin:

```sh
echo "Hello, World!" | python your_script.py
```

The output will be:

```sh
HELLO, WORLD!
```

## Testing
To run the tests for stdpipeIO, you can use the following command:

```sh
python -m unittest discover tests
```

## License
This project is licensed under the MIT License. See the LICENSE file for details.

## Author
Greendog - x6reend0g@foxmail.com 
