Skip to main content

NNTP Library (including compressed headers)

Reason this release was yanked:

Bad version - missed param in function call

Project description

pynntp

Python NNTP library.

This package includes advanced NNTP features, including, compressed headers.

The most important (useful) feature of this package over other nntp libaries is the ablity to use generators to produce data. This allows for streaming download of large responses to say an XOVER command (which can produce gigabytes of data) and allows you to process the data at the same time is is being received. Meaning that memory use is minimal (even for the largest responses) and that cycles aren't being wasted waiting on a blocking read (even in a single threaded application)

Example

>>> import nntp
>>> nntp_client = nntp.NNTPClient('usenet-host.com', 443, 'user', 'password', use_ssl=True)
>>> nntp_client.date()
datetime.datetime(2013, 10, 19, 6, 11, 41, tzinfo=_tzgmt())
>>> nntp_client.xfeature_compress_gzip()
True
>>> nntp_client.date()
datetime.datetime(2013, 10, 19, 6, 13, 3, tzinfo=_tzgmt())

Supported Commands

NNTP commands that are currently supported include:

  • CAPABILITIES
  • MODE READER
  • QUIT
  • DATE
  • HELP
  • NEWGROUPS
  • NEWNEWS
  • LIST ACTIVE
  • LIST ACTIVE.TIMES
  • LIST NEWSGROUPS
  • LIST OVERVIEW.FMT
  • LIST EXTENSIONS
  • GROUP
  • NEXT
  • LAST
  • ARTICLE
  • HEAD
  • BODY
  • POST
  • XHDR
  • XZHDR
  • XOVER
  • XZVER
  • XPAT
  • XFEATURE COMPRESS GZIP
  • POST

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

pynntp-1.0.3.tar.gz (43.3 kB view details)

Uploaded Source

Built Distribution

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

pynntp-1.0.3-py3-none-any.whl (47.1 kB view details)

Uploaded Python 3

File details

Details for the file pynntp-1.0.3.tar.gz.

File metadata

  • Download URL: pynntp-1.0.3.tar.gz
  • Upload date:
  • Size: 43.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for pynntp-1.0.3.tar.gz
Algorithm Hash digest
SHA256 570c7e400982d2d36c9f2cf6611f4ff15184be4aab18a875342588de9a166e54
MD5 35306e3fd7c495244376459cbe2d912f
BLAKE2b-256 a3df6510c1ed0293370b7b847eb4f69ec789ea838564d214d83ffaa3b8720547

See more details on using hashes here.

File details

Details for the file pynntp-1.0.3-py3-none-any.whl.

File metadata

  • Download URL: pynntp-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 47.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for pynntp-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 1d76cd9398db3ec16810a77ab50c0c48bbc76ba269d578d77abcd84b10e289ee
MD5 0a6632ff5b2b80fae053e4073bdd41ac
BLAKE2b-256 e4209df6a762f02e6cfa558553e0773a533003e3de147dd71adabc67d5b74707

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