{ "info": { "author": "Wijnand Modderman-Lenstra", "author_email": "maze@pyth0n.org", "bugtrack_url": null, "classifiers": [], "description": "=============\n About modem\n=============\n\nThis package ports the XMODEM, YMODEM and ZMODEM protocols to Python. We try to\nimplement the protocols as minimalistic as possible without breaking the\nprotocol specifications.\n\nThe interface to most modem classes are pretty similair. Keep in mind though,\nthat the XMODEM protocol can send one file (stream) at a time, whereas the\nYMODEM and ZMODEM protocols can send multiple.\n\nAll modem implementations must be given a ``getc`` callback to retrieve\ncharacter data from the remote end and a ``putc`` callback to send character\ndata.\n\n\nExamples\n========\n\nAn example using ``STDIN``/``STDOUT`` may read::\n\n >>> import select\n >>> import sys\n >>> def getc(size, timeout=5):\n ... r, w, e = select.select([sys.stdin.fileno()], [], [], timeout)\n ... if r: return sys.stdin.read(size)\n ...\n >>> def putc(data, timeout):\n ... r, w, e = select.select([], [sys.stdout.fileno()], [], timeout)\n ... if w: return sys.stdout.write(data)\n\n\nNow we can send a stream using ``XMODEM``::\n\n >>> from modem import XMODEM\n >>> xmodem = XMODEM(getc, putc)\n >>> stream = file(__file__)\n >>> xmodem.send(stream)\n ...\n\n\nOr send one or more files using ``YMODEM`` or ``ZMODEM``::\n\n >>> from modem import ZMODEM\n >>> zmodem = ZMODEM(getc, putc)\n >>> zmodem.send([__file__])\n\n\nAcknowledgements\n================\n\nAbout the protocols:\n\n:``XMODEM``: |copy| 1977 Ward Christensen\n:``YMODEM``: |copy| 1985 Chunk Forsberg, Omen Technology Inc.\n:``ZMODEM``: |copy| 1986 Chunk Forsberg, Omen Technology Inc.\n\n\nThanks to:\n\n* Paolo Perfetti, wrote most of the ``YMODEM`` implementation\n\n.. |copy| unicode:: U+00A9 .. COPYRIGHT SIGN", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://maze.io/", "keywords": "xmodem ymodem zmodem protocol", "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "modem", "package_url": "https://pypi.org/project/modem/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/modem/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://maze.io/" }, "release_url": "https://pypi.org/project/modem/1.0/", "requires_dist": null, "requires_python": null, "summary": "Modem implementations for XMODEM, YMODEM and ZMODEM", "version": "1.0" }, "last_serial": 302160, "releases": { "1.0": [] }, "urls": [] }