Skip to main content

XMODEM protocol implementation.

Project description

Documentation available at http://packages.python.org/xmodem/

Usage

Create a function to get and put character data (to a serial line for example):

>>> from xmodem import XMODEM
>>> def getc(size, timeout=1):
...     return data or None
...
>>> def putc(data, timeout=1):
...     return size or None
...
>>> x = XMODEM(getc, putc)

Now, to upload a file, use the send method:

>>> stream = open('/etc/fstab', 'rb')
>>> x.send(stream)

To download a file, use the recv method:

>>> stream = open('output', 'wb')
>>> x.recv(stream)

For more information, take a look at the documentation.

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

xmodem-0.1.tar.gz (5.7 kB view details)

Uploaded Source

Built Distributions

xmodem-0.1.linux-i686.tar.gz (8.3 kB view details)

Uploaded Source

xmodem-0.1-py2.6.egg (10.1 kB view details)

Uploaded Source

File details

Details for the file xmodem-0.1.tar.gz.

File metadata

  • Download URL: xmodem-0.1.tar.gz
  • Upload date:
  • Size: 5.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for xmodem-0.1.tar.gz
Algorithm Hash digest
SHA256 b967113f493ef3f9ce0bf47ee04049ac455dd0f53e964c8fbacf0aaa049a8e93
MD5 60cdc9a7e4f950289e202eefc75098bc
BLAKE2b-256 0701cc25b10d9ab4bc8370c7da522bad126b95462fef9419bf3b342642d5d586

See more details on using hashes here.

File details

Details for the file xmodem-0.1.linux-i686.tar.gz.

File metadata

File hashes

Hashes for xmodem-0.1.linux-i686.tar.gz
Algorithm Hash digest
SHA256 f4b8ed21b077d55d8b061260385069b373afc4dde41e31d66e17b6074590bf9f
MD5 cdfbc0e61fdb94fc7030c556ee1e9470
BLAKE2b-256 bbc37a9955b30baa4a9a327d9cdd3bd89101ea35687f39902218a3f68d020b8b

See more details on using hashes here.

File details

Details for the file xmodem-0.1-py2.6.egg.

File metadata

  • Download URL: xmodem-0.1-py2.6.egg
  • Upload date:
  • Size: 10.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for xmodem-0.1-py2.6.egg
Algorithm Hash digest
SHA256 06193347f7c2bd4842eb87263a9dd49ac5f9ab74d447488a449cf693868ea425
MD5 474cf74e68c2feafe1b46b8897fa500e
BLAKE2b-256 8fc8780b0c277e10af62b4279ff08f936d616ff2b6afa10c62cb7caf9569ee8c

See more details on using hashes here.

Supported by

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