To improve the user experience on this site we use cookies. I agree | I disagree

Python Support

Python provides a versatile high-level language for developing sophisticated automation scripts and custom applications on Advantech routers, extending capabilities beyond simple shell scripts. Python support is typically enabled by installing Python Router App (Python 3 or Python 3 Lite).

Why Use Python on Routers?

  • Advanced Logic: Implement complex algorithms and data handling.
  • Extensive Libraries: Utilize Python's standard library for diverse tasks (networking, file I/O, etc.).
  • Third-Party Packages: Access a wide range of additional libraries via pip (package installer).
  • Router Integration: Interact directly with router hardware and software using Advantech's um (User Module) Python module (e.g., GPIOs, system status).
  • Readability: Python's syntax often leads to more maintainable code for complex tasks.

Common Python Use Cases:

  • Custom system monitoring and alerting.
  • Data acquisition from sensors or connected devices.
  • Dynamic router configuration.
  • Creating custom web interface pages or CGI scripts.
  • Integration with cloud services.

Further Information:

This page serves as a brief introduction to using Python on Advantech routers. For comprehensive details, including in-depth theory, advanced examples, Router App development guides, and best practices, please consult our Extending Router Functionality application note. This document covers various topics such as advanced Shell Scripting, Python programming for routers, creating Router Apps, and more.