nntpserver.py
No-dependency, single file NNTP server library for developing modern, rfc3977-compliant (bridge) NNTP servers for python >=3.7. Developed as part of tade, a web discussion forum with mailing list/NNTP interfaces which powers the https://sic.pm link aggregator.
Included example servers are:
example_server.pyreturning hard-coded articleshnnntp.pyquerying news.ycombinator.com (hackernews) API and caching results in an sqlite3 database. A public instance might be online at nessuent.xyz:564 (TLS only)
| https://sic.pm NNTP server that uses `nntpserver.py` accessed on a Commodore Amiga with NewsCoaster client |
|---|
Running example_server.py:
$ python3 example_server.py --connect-with-nntplib
Listening on localhost:9999
Connecting with nntplib...
New connection.
sending 201 NNTP Service Ready, posting prohibited
got: CAPABILITIES
sending 101 Capability list:
sending VERSION 2
sending READER
sending HDR
sending LIST ACTIVE NEWSGROUPS OVERVIEW.FMT SUBSCRIPTIONS
sending OVER
sending .
got: GROUP example.all
Group name example.all
sending 211 1 1 1 example.all
got: XOVER 1-1
sending 224 Overview information follows (multi-line)
sending 1 Hello world! epilys <epilys@example.com> Wed, 01 Sep 2021 15:06:01 +0000 <unique@example.com> 16 1
sending .
got: LIST OVERVIEW.FMT
sending 215 Order of fields in overview database.
sending Subject:
sending From:
sending Date:
sending Message-ID:
sending References:
sending Bytes:
sending Lines:
sending .
1 epilys <epilys@example.com> Hello world! (1)
Done with nntplib.
Metadata
Release files for nntpserver 0.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| nntpserver-0.0.3.tar.gz | 22.7 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| nntpserver-0.0.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 44.7 kB
Release files / nntpserver-0.0.3.tar.gz
| Download URL | nntpserver-0.0.3.tar.gz |
|---|---|
| Size | 22.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7337d1b39d9ae5d289e87ef1544a58833ec00ab687bc2d17f6310e18bee4dd1d
|
|
BLAKE2b-256 checksum How to use checksums |
ecfc8c02682ab4f706074d2c0d293fbd081b4250eb16faca213ce14730d039b8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.25.1 requests-toolbelt/0.9.1 urllib3/1.26.5 tqdm/4.57.0 importlib-metadata/4.11.3 keyring/22.0.1 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.2
|
Release files / nntpserver-0.0.3-py3-none-any.whl
| Download URL | nntpserver-0.0.3-py3-none-any.whl |
|---|---|
| Size | 22.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
dfcf9a0adad422778e27ab65079317084e62809657a6daa5d9c1b2f0494fe5af
|
|
BLAKE2b-256 checksum How to use checksums |
cb292434471cb66418b56f23d71e7b7d41f4397a902ae12d3b976b924eb70414
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.25.1 requests-toolbelt/0.9.1 urllib3/1.26.5 tqdm/4.57.0 importlib-metadata/4.11.3 keyring/22.0.1 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.2
|
Security for nntpserver 0.0.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.