POSIX Pipe async helper
Project description
AIO-PIPE
========
.. image:: https://travis-ci.org/mosquito/aio-pipe.svg
:target: https://travis-ci.org/mosquito/aio-pipe
:alt: Travis CI
.. image:: https://img.shields.io/pypi/v/aio-pipe.svg
:target: https://pypi.python.org/pypi/aio-pipe/
:alt: Latest Version
.. image:: https://img.shields.io/pypi/wheel/aio-pipe.svg
:target: https://pypi.python.org/pypi/aio-pipe/
.. image:: https://img.shields.io/pypi/pyversions/aio-pipe.svg
:target: https://pypi.python.org/pypi/aio-pipe/
.. image:: https://img.shields.io/pypi/l/aio-pipe.svg
:target: https://pypi.python.org/pypi/aio-pipe/
Real asynchronous file operations with asyncio support.
Status
------
Development - BETA
Features
--------
* aio-pipe is a helper for POSIX pipes.
Code examples
-------------
Useful example.
.. code-block:: python
import asyncio
from aio_pipe import AsyncPIPE
async def main(loop):
p = AsyncPIPE(loop)
for _ in range(1):
await p.write(b"foo" * 1000)
await p.read(3000)
p.close()
loop = asyncio.get_event_loop()
loop.run_until_complete(main(loop))
Write and read with helpers:
.. code-block:: python
========
.. image:: https://travis-ci.org/mosquito/aio-pipe.svg
:target: https://travis-ci.org/mosquito/aio-pipe
:alt: Travis CI
.. image:: https://img.shields.io/pypi/v/aio-pipe.svg
:target: https://pypi.python.org/pypi/aio-pipe/
:alt: Latest Version
.. image:: https://img.shields.io/pypi/wheel/aio-pipe.svg
:target: https://pypi.python.org/pypi/aio-pipe/
.. image:: https://img.shields.io/pypi/pyversions/aio-pipe.svg
:target: https://pypi.python.org/pypi/aio-pipe/
.. image:: https://img.shields.io/pypi/l/aio-pipe.svg
:target: https://pypi.python.org/pypi/aio-pipe/
Real asynchronous file operations with asyncio support.
Status
------
Development - BETA
Features
--------
* aio-pipe is a helper for POSIX pipes.
Code examples
-------------
Useful example.
.. code-block:: python
import asyncio
from aio_pipe import AsyncPIPE
async def main(loop):
p = AsyncPIPE(loop)
for _ in range(1):
await p.write(b"foo" * 1000)
await p.read(3000)
p.close()
loop = asyncio.get_event_loop()
loop.run_until_complete(main(loop))
Write and read with helpers:
.. code-block:: python
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Built Distributions
Close
Hashes for aio_pipe-0.1.1-cp36-cp36m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 95111230edbe634438d9223b8d1c5e44b17201642c8d43419ded3ae398069d3a |
|
MD5 | b668f08841a3f1afa1095a4528b39c16 |
|
BLAKE2-256 | 030600d6e8f1cdbd9c916d05f56850340411cc9ab565855b2e321e9811cd7694 |
Close
Hashes for aio_pipe-0.1.1-cp35-cp35m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c8394b3f6edaa5032ad506126d9ed9978bb0d95f3dd3dd060abe029f30c8ccdf |
|
MD5 | 34b3c5b3ef95ec4672d7ab43ae2733c5 |
|
BLAKE2-256 | 247631f4bbd2e73f7447b97528c1fc8f30fed2f0487d435cb605a4e2773c061e |
Close
Hashes for aio_pipe-0.1.1-cp34-cp34m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9730562e55ac5719ba81e96760c1ada87ceabff76f12d5ae721551226cbea9f5 |
|
MD5 | 7f457220ba00b1fc219e37b2063a7614 |
|
BLAKE2-256 | 5a86865840751206e442e17f8e54f90b2339e7c9ebf4b90b19317fed7d4609cf |