Skip to main content

ptcommands

A small Python library and CLI for the command catalog extracted from the uploaded penetration-testing course PDFs.

Safety note: this library only stores and displays commands. It does not run Nmap. Only run scanning commands on systems you own or have permission to test.

Install locally

cd ptcommands_lib
python -m pip install -e .

Use as a library

from ptcommands import COMMANDS, filter_commands

for item in filter_commands(COMMANDS, section="Section 7", category="nmap", search="ports"):
    print(item.command, "=>", item.usage)

Use as a command-line tool

ptcommands
ptcommands --category nmap
ptcommands --section "Section 7" --search ports
ptcommands --markdown > COMMANDS.md

Build a distributable package

python -m pip install build
python -m build

The generated package files will be in dist/.

Metadata

Release files for ptcommands 0.1.1

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

Source distribution (sdist)

Source distribution for ptcommands 0.1.1
File Size Uploaded Provenance Actions
ptcommands-0.1.1.tar.gz 4.7 kB Without provenance Details for ptcommands-0.1.1.tar.gz

Built distribution (wheel)

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

Total release size: 10.0 kB

Release files / ptcommands-0.1.1.tar.gz

Download URL ptcommands-0.1.1.tar.gz
Size 4.7 kB
Tags Source
SHA-256 checksum
How to use checksums
ea81f5fd625549af31a80dc0159645c63446216bfab8b7c9a6ad300878e164b7
BLAKE2b-256 checksum
How to use checksums
8d33d45325cd286baa572ee0a220864941c8b6fdfb21c30cea29cc6a5743647c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.7

Release files / ptcommands-0.1.1-py3-none-any.whl

Download URL ptcommands-0.1.1-py3-none-any.whl
Size 5.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0b86df7086855fbb90b52c29cbab4530b23c72d1a198a8878d1ff30e2bd97d55
BLAKE2b-256 checksum
How to use checksums
1094e4253cb97e83668e4a7de119cda8c6d2a7c7f309328e42c87120d16cc59f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.7

Security for ptcommands 0.1.1

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.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files No provenance

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