Skip to main content

Interactive tool for line-based protocols

Project description

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/.

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

ntsh-1.1.3.tar.gz (19.7 kB view details)

Uploaded Source

Built Distribution

ntsh-1.1.3-py3-none-any.whl (21.2 kB view details)

Uploaded Python 3

File details

Details for the file ntsh-1.1.3.tar.gz.

File metadata

  • Download URL: ntsh-1.1.3.tar.gz
  • Upload date:
  • Size: 19.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.2

File hashes

Hashes for ntsh-1.1.3.tar.gz
Algorithm Hash digest
SHA256 82adcbd7ae9f3680eaf65f85088b69ffba9c7e65defeccda633723dcd0881db6
MD5 ab18d9d0e368e7f53d768e2e6771b4bb
BLAKE2b-256 2c1cd460a847f2a8786f6b8fe51de9a7c5febae87157da8c46c4dcaf6f03cf5d

See more details on using hashes here.

File details

Details for the file ntsh-1.1.3-py3-none-any.whl.

File metadata

  • Download URL: ntsh-1.1.3-py3-none-any.whl
  • Upload date:
  • Size: 21.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.2

File hashes

Hashes for ntsh-1.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 53fe8e5a0a6d025e879cc9240c9854359c55c278ed1e7ed92aa2bd6306aec85e
MD5 e44aeee9f2eb62b9ba2107a3487004a4
BLAKE2b-256 f1426bdca2a81f57b5d092ffca561f9b6f528a91c7d2d3ca54e32b6ae04dec6f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page