python3-nmap
Python3-nmap converts Nmap commands into python3 methods making it very easy to use nmap in any of your python pentesting projects
Decision gist · record as of 2026-08-14
Yes, with conditions. Install if you need to automate nmap scans from Python and can tolerate the aging maintenance status (698 days since last release). Verify the unclear license before use in proprietary contexts. Requires nmap to be pre-installed on the system and root access for certain operations. No known security vulnerabilities.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires nmap to be installed on the system.
- Some operations require root/superuser privileges.
- Low install friction with a single runtime dependency (simplejson).
License · maintenance · safety
(unclear) — License treatment is unclear; no SPDX identifier or raw license text is available in the package metadata. Verify the actual license before use in proprietary or restricted contexts.
last release 2024-09-15 (698 days) · last repo commit 2025-09-10 · 313 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 232,576 downloads/mo, #9,063 on PyPI
Alternatives
Verify before relying
pip install python3-nmap
import python3_nmap
results = python3_nmap.Nmap().scan_top_ports("your-host.com")- Whether the package is actively maintained or in maintenance-only mode given the 698-day gap since last release.
- Actual license terms, since license_treatment is unclear and no SPDX identifier is present.
- Cross-platform support claim (Windows and Linux) and any platform-specific limitations.
- Which specific operations require root privileges beyond those documented in the description excerpt.
What it is and what it does
python3-nmap is a Python wrapper around the nmap command-line port scanner that exposes nmap functionality as Python methods and classes. Instead of constructing shell commands, you instantiate Nmap objects and call methods to run scans and receive results as JSON. The library organizes nmap's capabilities into three main classes: Nmap (general scanning), NmapScanTechniques (various scan types), and NmapHostDiscovery (discovery modes).
The package depends on simplejson for result serialization and requires nmap itself to be installed on the system. It supports Python 3.6 and later. Several operations require root privileges. The library is useful for automating network reconnaissance tasks within Python scripts, though it remains a thin wrapper around nmap rather than a reimplementation.
Use it for
- Automate port scanning and service discovery in Python security testing scripts without shell command construction.
- Batch scan multiple hosts and parse structured JSON results for reporting or downstream analysis.
- Integrate OS detection and version identification into Python-based network inventory or assessment tools.
- Run DNS brute-force subdomain enumeration via nmap scripts through Python method calls.
- Combine multiple scan techniques in a single Python workflow for comprehensive host reconnaissance.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, with conditions.
Install if you need to automate nmap scans from Python and can tolerate the aging maintenance status (698 days since last release). Verify the unclear license before use in proprietary contexts. Requires nmap to be pre-installed on the system and root access for certain operations. No known security vulnerabilities.
Install
python3-nmap on PyPI
Before you install
Low install friction with a single runtime dependency (simplejson). Maintenance status is aging—last release was 698 days ago, though the repository remains active with 313 stars and a recent commit on 2025-09-10.
Requires nmap to be installed on the system. Some operations require root/superuser privileges.
License in practice
License treatment is unclear; no SPDX identifier or raw license text is available in the package metadata. Verify the actual license before use in proprietary or restricted contexts.
Quickstart
pip install python3-nmap
import python3_nmap
results = python3_nmap.Nmap().scan_top_ports("your-host.com")
Verify before relying
- Whether the package is actively maintained or in maintenance-only mode given the 698-day gap since last release.
- Actual license terms, since license_treatment is unclear and no SPDX identifier is present.
- Cross-platform support claim (Windows and Linux) and any platform-specific limitations.
- Which specific operations require root privileges beyond those documented in the description excerpt.
Package facts
| License | Not declared unclear |
| Python support | Supports the current Python release >=3.6 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 1 packagesimplejson |
| Maintenance | Aging 698 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 232,576 / month, #9,063 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Operating System :: OS IndependentProgramming Language :: Python :: 3 |
Evidence: python3_nmap-1.9.1-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “nmap python wrapper”
- python3-nmapWraps nmap port scanner commands as Python methods, converting…
- python-nmapPython wrapper for the nmap port scanner that parses scan results…
- netaddrRepresents and manipulates IPv4, IPv6, MAC addresses and related…
Give your agent the search over MCP, or paste the wish link into any chat.
More Networking packages
h11 is a pure-Python HTTP/1.1 protocol implementation that handles parsing and serializing HTTP messages without any built-in I/O, letting you integrate it with any network layer you choose.
psutil retrieves real-time information about running processes and system resources (CPU, memory, disks, network, sensors) across multiple operating systems, enabling system monitoring, process profiling, and resource management.
pyOpenSSL wraps OpenSSL's SSL/TLS functionality for Python, providing high-level connection objects and certificate handling through a Python-friendly interface around OpenSSL's cryptographic operations.
uvloop is a drop-in replacement for Python's built-in asyncio event loop, implemented in Cython and using libuv, that accelerates async I/O operations.
execnet lets you spawn and communicate with Python interpreters across local processes, remote hosts, and different platforms, using a simple API for task distribution and inter-process messaging.
However, the aging maintenance status (275 days since last release) means you should verify it meets your concurrency and performance needs before committing to a…
PyZMQ provides Python bindings for ZeroMQ (ØMQ), a lightweight messaging library that enables fast, asynchronous communication between distributed processes and applications.
See also python-nmap · port-for · cisco-ai-mcp-scanner · bbot · safety · ipaddress · aiodiscover · nslookup · netaddr · portpicker