Skip to main content

SslTelnet

A wrapper for telnetlib.Telnet() that handles SSL/TLS, with optional TELNET negotiated TLS. This can be used to connect to TELNETS and SSLTELNET servers, as well as various MUD/MUCK/MUSH chat servers.

API

The API for SslTelnet is just like that for the standard python library telnetlib, with the addition of a few arguments to the Telnet() initializer.

ssltelnet.SslTelnet()

Called just like telnetlib.Telnet(), with these extra optional arguments:

force_ssl

If True, force SSL negotiation as soon as connected. Defaults to True.

telnet_tls

If true, allow TELNET TLS negotiation after non-ssl connection. Defaults to True.

You can also pass args that ssl.wrap_socket() would expect.

If force_ssl is True, plaintext connections aren’t allowed. If force_ssl is False, and telnet_tls is True, the connection will be plaintext until the server negotiates TLS, at which time the connection will be secured. If both are False, the connection will be plaintext.

Example

import ssltelnet
s = ssltelnet.SslTelnet(force_ssl=False, host='foobar.com', port=23)
print(s.read_until(b'\n', 10))
s.close()

Metadata

Release files for ssltelnet 0.9.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ssltelnet 0.9.2
File Size Uploaded Provenance
ssltelnet-0.9.2.tar.gz 3.5 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for ssltelnet 0.9.2
File Interpreter ABI Platform
ssltelnet-0.9.2-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 8.9 kB

Release files / ssltelnet-0.9.2.tar.gz

Download URL ssltelnet-0.9.2.tar.gz
Size 3.5 kB
Tags Source
SHA-256 checksum
How to use checksums
7b31d817d723d62c5d967008b72facfdc8e257dbd8f678f2e847eab94f02fc07
BLAKE2b-256 checksum
How to use checksums
a3adfab060c32ec8c3fac405331b72132b8c112e024e3700d6299a88e3046426
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / ssltelnet-0.9.2-py2.py3-none-any.whl

Download URL ssltelnet-0.9.2-py2.py3-none-any.whl
Size 5.4 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
827567f22373033f91f7ed9d823cb878ffd5e56564fa874f4f03cbe843504593
BLAKE2b-256 checksum
How to use checksums
c38f1e7249e726affc1bf4bc098ab42f2b6131931f53b5e81e0af2dbdbc92fca
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for ssltelnet 0.9.2

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page