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 --tree-brief
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

chatnet --tree renders the registered command surface with signatures through ChatStyle; chatnet --tree-brief renders the same nodes without signatures. Tree output names sensitive options but never contains their values.

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.3.tar.gz (22.3 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.3-py3-none-any.whl (22.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: chatnet-0.2.3.tar.gz
  • Upload date:
  • Size: 22.3 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.3.tar.gz
Algorithm Hash digest
SHA256 333df276308b1822a2d648d3887f533ec034854d902e6b23625c9b71691d0226
MD5 d502b16d0088c13e5fb3315f12aaf87d
BLAKE2b-256 ef1cac5ff8ad2e6ba705cb31dca54a1fd04c0d7b345b957027bbc62ab640f524

See more details on using hashes here.

Provenance

The following attestation bundles were made for chatnet-0.2.3.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.3-py3-none-any.whl.

File metadata

  • Download URL: chatnet-0.2.3-py3-none-any.whl
  • Upload date:
  • Size: 22.8 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 895b53348aca3f2aec3d156d2846e9519071a1bfbc1cb6fef9d52183f19cab74
MD5 0f78ede01c23214719c3acda91cd3200
BLAKE2b-256 9a2487c2bc411e87b00639c86a398b41c431cee601d1f2bba295ce81c35a6af2

See more details on using hashes here.

Provenance

The following attestation bundles were made for chatnet-0.2.3-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

This release

0.2.3 This release

2 files

0.2.2

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