Skip to content

Aspx

flowtask.components.ASPX

ASPX

ASPX(job=None, *args, **kwargs)

Bases: FlowComponent, HTTPService

ASPX

Overview

The ASPX class is designed for interacting with ASPX-based web applications, particularly those requiring authentication.
It inherits from the DtComponent and HTTPService classes, providing a structured way to manage sessions, handle state views,
and perform HTTP requests with ASPX web forms. This class is useful for automating interactions with ASPX web pages, including login
and data retrieval operations.

.. table:: Properties :widths: auto

+-------------------------+----------+-----------+--------------------------------------------------------------------------------------+
| Name                    | Required | Description                                                                                      |
+-------------------------+----------+-----------+--------------------------------------------------------------------------------------+
| _credentials            |   Yes    | A dictionary containing username and password for authentication.                                  |
+-------------------------+----------+-----------+--------------------------------------------------------------------------------------+
| _views                  |   No     | A dictionary storing state views extracted from ASPX pages.                                        |
+-------------------------+----------+-----------+--------------------------------------------------------------------------------------+
| _client                 |   Yes    | An instance of `httpx.AsyncClient` used for making asynchronous HTTP requests.                     |
+-------------------------+----------+-----------+--------------------------------------------------------------------------------------+

Return

The methods in this class facilitate the interaction with ASPX-based web applications, including login handling,
session management, and state view management. The class also allows for abstract extension, enabling customization
for specific ASPX web forms and interactions.

check_keys_exists

check_keys_exists(*args, **kwargs)

Validate that specified keys are present in the kwargs dict

run abstractmethod async

run()

Extend this method: Call super() after your code to make sure the client session is closed.