Skip to main content

AutoDialer is an automation script designed to interact with routers using APIs.

Project description

AutoDialer

AutoDialer AutoDialer is a cross-platform Python CLI package for router APIs, designed to rotate public IP addresses automatically and streamline router interactions.

Why AutoDialer?

  • Convenient IP rotation on dynamic lines without manual router reboot.
  • Cross-platform (Windows, Linux, macOS, BSD).
  • CLI-first usage for scripts and automation.

Installation

pip install autodialer

[!NOTE] Only TP-Link, ZTE and ASUS routers are supported now.

[!WARNING] Keep .env private and never commit credentials.

Configuration

Create a .env file in your working directory:

Variable Description
PANEL_USERNAME Router panel username (defaults to admin)
PANEL_PASSWORD Router panel password
PPPOE_USERNAME ISP PPPoE username override (optional)
PPPOE_PASSWORD ISP PPPoE password override (optional)
ASN Optional library-level default ASN. The CLI currently expects the ASN to be passed explicitly with --asn <ASN>.

Example:

PANEL_USERNAME='admin'
PANEL_PASSWORD='your_router_panel_password'
PPPOE_USERNAME='your_pppoe_username'
PPPOE_PASSWORD='your_pppoe_password'
ASN='AS9929'

Usage

After installation, use the CLI directly:

autodialer --force
autodialer --asn AS9929
autodialer-devices
autodialer --change

Arguments:

  • -f, --force: force reconnection even if ASN is already matched.
  • -a, --asn: target ASN (for example AS9929 or 9929).
  • -c, --change: change the IP address.

Behavior:

  • autodialer with no arguments is invalid; use one of --force, --asn <ASN>, or --change.
  • AutoDialer detects current WAN protocol and applies matching reconnection action.
  • PPPoE uses disconnect/connect flow and reuses the router's saved credentials by default.
  • If PPPOE_USERNAME and PPPOE_PASSWORD are set, AutoDialer updates the router's PPPoE config before reconnecting.
  • DHCP uses DHCP renew flow and shares the same ASN/check/retry control logic.

Documentation


Thanks for using AutoDialer.

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

autodialer-0.4.5.tar.gz (43.8 kB view details)

Uploaded Source

Built Distribution

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

autodialer-0.4.5-py3-none-any.whl (41.5 kB view details)

Uploaded Python 3

File details

Details for the file autodialer-0.4.5.tar.gz.

File metadata

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

File hashes

Hashes for autodialer-0.4.5.tar.gz
Algorithm Hash digest
SHA256 26ef0e4ae5d0c7e94ed045b8c5dd285b103dfde82c854b2e547af497ae98ae05
MD5 56b0c52fa7f8d73ea239e037d9448f24
BLAKE2b-256 d0fd68ff2f12fd7bb357c396218644691b479f24656041f7da35d22e51a7d1f0

See more details on using hashes here.

Provenance

The following attestation bundles were made for autodialer-0.4.5.tar.gz:

Publisher: release.yml on ByteFlowing1337/AutoDialer

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

File details

Details for the file autodialer-0.4.5-py3-none-any.whl.

File metadata

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

File hashes

Hashes for autodialer-0.4.5-py3-none-any.whl
Algorithm Hash digest
SHA256 8c1a218c6350a8153f4f48bcea76339c8bcac848e23f685b0e3efe565783440e
MD5 318d906676df5c033412d08cd0982ffd
BLAKE2b-256 789a656151df9575b0799c773bf4a818282161f75f4c0bf4e38cad9f82399840

See more details on using hashes here.

Provenance

The following attestation bundles were made for autodialer-0.4.5-py3-none-any.whl:

Publisher: release.yml on ByteFlowing1337/AutoDialer

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