Metadata-Version: 2.4
Name: scopez
Version: 0.3.0
Summary: Scopez verifies connectivity to target servers, reveals CDN presence, and provides detailed target insights like reachability and RDAP.
Author-email: Christos Kaltsas <christos@xcalts.co>
Maintainer-email: Christos Kaltsas <christos@xcalts.co>
License: MIT License
        
        Copyright (c) 2026 xcalts
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
        
Project-URL: Homepage, https://github.com/xcalts/scopez
Project-URL: Source, https://github.com/xcalts/scopez
Project-URL: Documentation, https://github.com/xcalts/scopez
Project-URL: Bug Reports, https://github.com/xcalts/scopez/issues
Project-URL: Changelog, https://github.com/xcalts/scopez/releases
Requires-Python: >3.11
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: click==8.5.0
Requires-Dist: requests==2.34.2
Requires-Dist: urllib3==2.8.0
Requires-Dist: rich==15.0.0
Requires-Dist: pydantic==2.14.2
Requires-Dist: ipwhois==1.3.0
Requires-Dist: dnspython==2.9.1
Requires-Dist: fqdn==1.6.0
Requires-Dist: pandas==3.1.0
Requires-Dist: networkx==3.7
Requires-Dist: matplotlib==3.11.2
Requires-Dist: numpy==2.5.4
Requires-Dist: pillow==13.0.0
Requires-Dist: scipy==1.18.1
Dynamic: license-file

<a id="readme-top"></a>

<!-- PROJECT LOGO -->
<br />

<div align="center">

[![Python][python-shield]][python-url]
[![Linux][linux-shield]][linux-url]
[![MacOS][macos-shield]][macos-url]
[![Stars][stars-shield]][stars-url]
[![Contributors][contributors-shield]][contributors-url]
[![Issues][issues-shield]][issues-url]

  <h1>Scopez</h1>
  
  <p align="center">
    Scopez verifies connectivity to target servers, reveals CDN presence, and provides detailed target insights like reachability and RDAP.
    <br />
    <br />
    <a href="https://github.com/xcalts/scopez/issues/new?labels=bug&template=bug-report---.md">Report Bug</a>
    ·
    <a href="https://github.com/xcalts/scopez/issues/new?labels=enhancement&template=feature-request---.md">Request Feature</a>
    ·
    <a href="https://pypi.org/project/scopez/">PyPI</a>
  </p>

</div>

## Installation

You can install `scopez` using `uv`.

```
uv tool install scopez
```

<p align="right">(<a href="#readme-top">back to top</a>)</p>

## Features

- Parses a file filled with targets
- Does IP network **math**
- Captures **RDAP** data
- **Pings** IPs and FQDNs
- Displays **DNS chains**
- Unix friendly input/output
- **Threads** support
- Multiple input support - **STDIN/FILE/CIDR/IP/FQDN/URL**
- Multiple output formats - **TABLE/JSON** (stdout) and **PNG** network graph
- Visualize the network using a graph

<p align="right">(<a href="#readme-top">back to top</a>)</p>

## Usage

```
Usage: scopez [OPTIONS]

DEBUG:
  -version   Show the version and exit.
  -no-color  Disable colors in CLI output.
  -silent    Display only results in output.
  -debug     Display debug messages.
  -simulate  Display the parsed targets.

INPUT:
  -target           Targets to analyze (comma-separated).
  -list             List of targets to analyze (file).
  -exclude-targets  Targets to exclude from analysis (comma-separated).
  -exclude-file     List of targets to exclude from analysis (file).

OUTPUT:
  -table        Print the results as tables.
  -json         Print the results as JSON.
  -visual       Visualize the results as a network graph image (requires -output-file).
  -output-file  Output image file for -visual (e.g., network.png).

TWEAK:
  -threads  The max number of worker threads.

OTHER:
  -help  Show this message and exit.

EXAMPLES:
  # Analyze a mix of targets and print tables.
  scopez -target 8.8.8.8,1.1.1.0/24,www.github.com,https://example.com -table

  # Analyze targets from a file and print JSON lines (logs go to stderr).
  scopez -list targets.txt -json > results.json

  # Read targets from STDIN and keep only the public IPs with jq.
  cat targets.txt | scopez -json -silent | jq -r 'select(.type == "ipv4" and .visibility == "Public") | .ipv4'

  # Exclude out-of-scope targets.
  scopez -list targets.txt -exclude-file out-of-scope.txt -table

  # Draw the targets, their DNS chains and IPs as a network graph.
  scopez -list targets.txt -visual -output-file network.png

  # Preview how the targets are parsed without analyzing them.
  scopez -list targets.txt -simulate
```

<p align="right">(<a href="#readme-top">back to top</a>)</p>

<!-- MARKDOWN LINKS & IMAGES -->
<!-- https://www.markdownguide.org/basic-syntax/#reference-style-links -->

[contributors-shield]: https://img.shields.io/github/contributors/xcalts/scopez.svg?style=flat
[contributors-url]: https://github.com/xcalts/scopez/graphs/contributors
[stars-shield]: https://img.shields.io/github/stars/xcalts/scopez.svg?style=flat
[stars-url]: https://github.com/xcalts/scopez/stargazers
[issues-shield]: https://img.shields.io/github/issues/xcalts/scopez.svg?style=flat
[issues-url]: https://github.com/xcalts/scopez/issues
[license-shield]: https://img.shields.io/github/license/xcalts/scopez.svg?style=flat
[license-url]: https://github.com/xcalts/scopez/blob/master/LICENSE
[python-shield]: https://img.shields.io/badge/Python-black?logo=python
[python-url]: https://www.python.org/
[linux-shield]: https://img.shields.io/badge/Linux-black?logo=linux
[linux-url]: https://www.linux.org/
[macos-shield]: https://img.shields.io/badge/Darwin-black?logo=macos
[macos-url]: https://www.apple.com/
