Skip to main content

ChatArch generic network helper package

Project description

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 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.

Project details


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.1.tar.gz (20.5 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.1-py3-none-any.whl (22.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: chatnet-0.2.1.tar.gz
  • Upload date:
  • Size: 20.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for chatnet-0.2.1.tar.gz
Algorithm Hash digest
SHA256 efb7c4af46faec3b9eea230c26a3f95a587b2ef88b79d60c251b0916ceff7b2f
MD5 bf40759fbb812e79499c83e49d9051c1
BLAKE2b-256 b838d9a8c8014eb325c9401349d16611a37d5aea1ad7b97c7317d9272b521461

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: chatnet-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 22.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for chatnet-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5f71f741915d8d157dac15aff8ff5e79fca9e5f2bb09152c033bae4101b756a0
MD5 4b95c9e252e64148893c51919f8e89b8
BLAKE2b-256 402acdd3680656cc603339e3a4f4ce6bd0f73994ae6a312bbff0c3c285f487d5

See more details on using hashes here.

Provenance

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

Supported by

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