Skip to main content

Xnmapy

A Python CLI tool that mimics the Nmap network scanning utility.

PyPI Python Ruff

Install

pip install xnmapy

Usage

from xnmapy import NmapScan, ScanOptions

options = ScanOptions(
    targets=["192.168.1.1"],
    ports="80,443",
    scan_type="SYN"
)
scan = NmapScan(options)
result = scan.run()
print(result.targets)
print(result.ports)

CLI

xnmapy --help
xnmapy -sS -p 80 192.168.1.1
xnmapy -v -A scanme.xnmapy.org

Development

git clone https://github.com/daedalus/xnmapy.git
cd xnmapy
pip install -e ".[test]"

# run tests
pytest

# format
ruff format src/ tests/

# lint
ruff check src/ tests/

# type check
mypy src/

License

MIT License - see LICENSE file for details.

Metadata

Release files for xnmapy 0.1.0

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

Source distribution (sdist)

Source distribution for xnmapy 0.1.0
File Size Uploaded
xnmapy-0.1.0.tar.gz 10.9 kB Details

Built distribution (wheel)

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

Total release size: 23.2 kB

Release files / xnmapy-0.1.0.tar.gz

Download URL xnmapy-0.1.0.tar.gz
Size 10.9 kB
Tags Source
SHA-256 checksum
How to use checksums
8c98c5bccdd5fc5880f88093ed8cf6c08807ea7b92ca4628252b9d076c1b3330
BLAKE2b-256 checksum
How to use checksums
e48c70f7338da8ae9359bd0d778df1a58163437b7c7df5f8e9024e01636fd2e6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Mar 31, 2026.

Transparency log

Release files / xnmapy-0.1.0-py3-none-any.whl

Download URL xnmapy-0.1.0-py3-none-any.whl
Size 12.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a6a53623cd7cffffaff7238dac5ccd2252721c1e60f629ff353b191ec94ef61c
BLAKE2b-256 checksum
How to use checksums
fc0169774d0415f1073a4a01a9b3e9d90b2db188fc3fb36a1e74c9625110eeae
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Mar 31, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

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