Skip to main content

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;
  • non-sudo explicit forward proxy serving, checking, and user autostart for trusted LAN clients.

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

Quick start

pip install -e ".[dev]"
chatnet --help
chatnet --tree
chatnet links --url https://example.com
CHATNET_PROXY_PASSWORD='<password>' chatnet proxy serve --bind 0.0.0.0 --port 18080 --allow-cidr 172.23.0.0/16 --user chatnet
CHATNET_PROXY_PASSWORD='<password>' chatnet proxy check --proxy-url http://127.0.0.1:18080 --user chatnet
chatnet proxy autostart print --bind 0.0.0.0 --port 18080 --allow-cidr 172.23.0.0/16 --user chatnet
chatenv status -t chatnet --detail
python -m pytest -q

Proxy defaults can also come from ChatEnv under $CHATARCH_HOME/envs/ChatNet/.env:

CHATNET_PROXY_BIND='127.0.0.1'
CHATNET_PROXY_PORT='18080'
CHATNET_PROXY_ALLOW_CIDR='127.0.0.0/8'
CHATNET_PROXY_USER='chatnet'
CHATNET_PROXY_PASSWORD='<password>'

Boundary

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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

chatnet-0.2.2.tar.gz (21.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

chatnet-0.2.2-py3-none-any.whl (23.6 kB view details)

Uploaded Python 3

File details

Details for the file chatnet-0.2.2.tar.gz.

File metadata

  • Download URL: chatnet-0.2.2.tar.gz
  • Upload date:
  • Size: 21.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for chatnet-0.2.2.tar.gz
Algorithm Hash digest
SHA256 4cdf001aae6fb94b14c3a738cdec8a438e1630650fafb8d4e3eb8694f9675b55
MD5 e005440f2bf6188231a66d7a1a515753
BLAKE2b-256 91f51f8962f7bf8d3a69e6565cd47beda43c9006d282777f3b6a4b77a46da556

See more details on using hashes here.

Provenance

The following attestation bundles were made for chatnet-0.2.2.tar.gz:

Publisher: publish.yml on ChatArch/ChatNet

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file chatnet-0.2.2-py3-none-any.whl.

File metadata

  • Download URL: chatnet-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 23.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for chatnet-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c5999e44dbf4e36635e8afd6f8a372cca0a9670165ceadabe3b63dc3b3801023
MD5 e173616ac95ab9dc672bfe3b329fd4ee
BLAKE2b-256 e8053c756902c966ddd912250028aec78d7255293221c402dd23affbd71b7ef9

See more details on using hashes here.

Provenance

The following attestation bundles were made for chatnet-0.2.2-py3-none-any.whl:

Publisher: publish.yml on ChatArch/ChatNet

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

0.2.3

2 files

This release

0.2.2 This release

2 files

0.2.1

2 files

0.2.0

2 files

0.1.2

2 files

0.1.1

2 files

0.1.0

2 files

0.0.1

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page