Skip to main content

NetraX

NetraX is an async Python wrapper for Nmap. It runs Nmap scans, parses Nmap's XML output into typed Python dataclasses, and provides structured scan reports for asyncio applications.

Current release

  • Version: 0.1.6
  • Python: 3.11 or newer
  • Runtime dependencies: none (standard library only)
  • License: MIT

NetraX invokes Nmap as an external program. Install Nmap separately and make sure it is available on your PATH. Most scan types require administrator or root privileges.

Install

python -m pip install netrax

Install Nmap using the instructions for your operating system at nmap.org.

Quick start

import asyncio
from netrax import Scanner


async def main():
    scanner = Scanner()
    report = await scanner.service_scan("192.168.1.1")

    for host in report.hosts:
        for port in host.ports:
            service_name = port.services.name if port.services else "unknown"
            state = port.state.state if port.state else "unknown"
            print(f"{port.portid}/{port.protocol}: {state} ({service_name})")


asyncio.run(main())

Only scan systems and networks you own or have explicit permission to test. Nmap is not bundled with NetraX and remains subject to its own license.

Documentation

Read the NetraX documentation for installation details, usage guides, and API reference organized by module. You can also start with the quick start guide or browse the public API reference.

Metadata

Release files for netrax 0.1.6

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

Source distribution (sdist)

Source distribution for netrax 0.1.6
File Size Uploaded Provenance Actions
netrax-0.1.6.tar.gz 15.1 kB Without provenance Details for netrax-0.1.6.tar.gz

Built distribution (wheel)

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

Total release size: 38.4 kB

Release files / netrax-0.1.6.tar.gz

Download URL netrax-0.1.6.tar.gz
Size 15.1 kB
Tags Source
SHA-256 checksum
How to use checksums
9d98dd861e9a28acf06dd05ec733ec5c4916c57bd2e27114fa42315bb3412bd4
BLAKE2b-256 checksum
How to use checksums
54a4b01d6da7eb566a47ff6a6d36afb67937395378e1d2dd43c85c57c93de752
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / netrax-0.1.6-py3-none-any.whl

Download URL netrax-0.1.6-py3-none-any.whl
Size 23.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7e5daea629310019b38c91d57bcb2cf7d42dd8f6cdaf08580b7c07fa1e9e2540
BLAKE2b-256 checksum
How to use checksums
d0a3616d1d008c1dcc2ed8e6477e964fdae20a372c2d1910d346cd3c806cb6e7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Security for netrax 0.1.6

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