Skip to main content

NNTP Library (including compressed headers)

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.4.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.4-py3-none-any.whl (47.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pynntp-1.0.4.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.4.tar.gz
Algorithm Hash digest
SHA256 c020db8f482bf1479c3e143beffd536dc4db4750f3db9206e3c30b3a58bf08e2
MD5 46a1e30c9b456b18e7b1daaa8165adf7
BLAKE2b-256 79813e16c98153b03bc760d65c0d44e6e149afd1acd095aa399e94c1b40e3106

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pynntp-1.0.4-py3-none-any.whl
  • Upload date:
  • Size: 47.2 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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 aceffdef4fb32ea540f3202877ea736c985df75316bcd9053e1d0305585f3abe
MD5 d9aae79f70f71a4ceac6b25d643a5bde
BLAKE2b-256 76c2f68faa54d4666c7701bdffc8261b1626683eba45b7551853285150fc44ca

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