Skip to main content

easy standard io line buffering

Project description

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

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

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

Built on

Python 3.12.8

pytest 8.3.4

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pynes_io-1.0.0.tar.gz (37.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pynes_io-1.0.0-py3-none-any.whl (2.3 kB view details)

Uploaded Python 3

File details

Details for the file pynes_io-1.0.0.tar.gz.

File metadata

  • Download URL: pynes_io-1.0.0.tar.gz
  • Upload date:
  • Size: 37.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for pynes_io-1.0.0.tar.gz
Algorithm Hash digest
SHA256 7f19a546ca4d9ee05bd2034cff4cfe7fc8cef4d128796b18d2b0a78afc0d2bf8
MD5 2b853806919eaaa5175a796895b1c3d7
BLAKE2b-256 747959129990c47ce247bd3e08da669d6d7baab64d66d180cb92ade2bcfc6d9f

See more details on using hashes here.

File details

Details for the file pynes_io-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: pynes_io-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 2.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for pynes_io-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9ea17282005e5e904c9cebc3d5bad6742f47da84d8ceadc7fa1aeafe7395b486
MD5 9425fa4d2bb8273ec00b1e78d37c1b89
BLAKE2b-256 2440adf27c04ff1d0eeb81e0de1d1eeeb563c25ed87f46776b54f9039a4aeb2f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page