Metadata-Version: 2.4
Name: ChatNet
Version: 0.2.0
Summary: ChatArch generic network helper package
Author-email: ChatArch <1073853456@qq.com>
License-Expression: MIT
Project-URL: Homepage, https://github.com/ChatArch/ChatNet
Project-URL: Repository, https://github.com/ChatArch/ChatNet
Project-URL: Documentation, https://ChatArch.github.io/ChatNet
Keywords: chatnet,chatarch,network,http
Classifier: Programming Language :: Python :: 3
Classifier: Operating System :: OS Independent
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: click>=8.0
Requires-Dist: requests>=2.0
Provides-Extra: dev
Requires-Dist: build; extra == "dev"
Requires-Dist: pytest; extra == "dev"
Requires-Dist: twine; extra == "dev"
Provides-Extra: docs
Requires-Dist: mkdocs>=1.4.0; extra == "docs"
Requires-Dist: mkdocs-material>=9.0.0; extra == "docs"
Requires-Dist: mike>=2.0.0; extra == "docs"
Dynamic: license-file

# ChatNet

ChatNet is the ChatArch generic network helper package. It owns reusable network and portal/session helpers such as:

- ICMP ping scanning and TCP port scanning;
- URL collection and link checking;
- browser/chromedriver/playwright service URL health checks;
- service URL helpers such as `append_token()` and `ensure_path()`;
- browser-like `requests.Session` setup with common headers;
- state-file backed cookie persistence;
- cookie header parsing/export;
- simple HTML table parsing helpers;
- safe request-spec / curl-preview generation for dry-run workflows.

Application-level campus portal logic belongs in packages such as `ChatECNU`, which depends on ChatNet for generic network and portal helpers.

## Quick start

```bash
pip install -e ".[dev]"
chatnet --help
chatnet links --url https://example.com
python -m pytest -q
```

## Boundary

ChatNet should stay application-neutral. ECNU login, visitor management, ECNU-specific ChatEnv schema, and ECNU CAPTCHA behavior belong in `ChatECNU`, not in ChatNet.
