Skip to main content

ntsh

ntsh is an interactive tool for line-based protocols, such as HTTP or SMTP. It can be thought of as a netcat that's better suited to interactive use by a human. Features include an editable prompt, history, and syntax highlighting, and asynchronous replies from the server won't interfere with the prompt.

Installation

ntsh is a pure-Python package. To install, run pip install ntsh.

Usage

To connect to a remote host host on port port, run

ntsh host:port

This makes no assumptions about protocol. To specify a protocol (which will enable syntax highlighting), pass it with -p protocol[:options]. At present the only supported protocol is katcp.

Revision history

1.1.3

  • Fix to support Python 3.12.
  • Bump minimum Python version to 3.8.
  • Replace setup.py with pyproject.toml.
  • Add a pre-commit configuration.
  • Reformat code with ruff and pyupgrade.

1.1.2

  • Fix output syntax highlight (regression in 1.1.1)

1.1.1

  • Optimise printing of responses with many lines

1.1

  • Switch to prompt_toolkit 3

1.0

  • Switch to prompt_toolkit 2

0.1.2

  • Fix crash when long lines are received from the remote (#2)

0.1.1

  • Depend on prompt_toolkit 1.0.15 instead of using an internal hack

0.1

  • Initial release

License

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.

Release files for ntsh 1.1.3

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

Source distribution (sdist)

Source distribution for ntsh 1.1.3
File Size Uploaded
ntsh-1.1.3.tar.gz 19.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ntsh 1.1.3
File Interpreter ABI Platform
ntsh-1.1.3-py3-none-any.whl Python 3 none any Details

Total release size: 41.0 kB

Release files / ntsh-1.1.3.tar.gz

Download URL ntsh-1.1.3.tar.gz
Size 19.7 kB
Tags Source
SHA-256 checksum
How to use checksums
82adcbd7ae9f3680eaf65f85088b69ffba9c7e65defeccda633723dcd0881db6
BLAKE2b-256 checksum
How to use checksums
2c1cd460a847f2a8786f6b8fe51de9a7c5febae87157da8c46c4dcaf6f03cf5d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.12.2

Release files / ntsh-1.1.3-py3-none-any.whl

Download URL ntsh-1.1.3-py3-none-any.whl
Size 21.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
53fe8e5a0a6d025e879cc9240c9854359c55c278ed1e7ed92aa2bd6306aec85e
BLAKE2b-256 checksum
How to use checksums
f1426bdca2a81f57b5d092ffca561f9b6f528a91c7d2d3ca54e32b6ae04dec6f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.12.2

Release history Release notifications | RSS feed

This release

1.1.3 This release

2 release files

1.1.2

2 release files

1.1.1

2 release files

1.1

2 release files

1.0

2 release files

0.1.2

1 release file

0.1.1

1 release file

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