nano-wait


Namenano-wait JSON
Version 0.0.2 PyPI version JSON
download
home_pageNone
SummaryWaiting Time Calculation for Automations Based on WiFi and PC Processing
upload_time2024-08-10 16:35:54
maintainerNone
docs_urlNone
authorLuiz Filipe Seabra de Marco
requires_pythonNone
licenseMIT License
keywords automation automação wifi wait
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            <<<<<<< HEAD
# Nano-Wait Library Documentation

## Overview

The Nano-Wait library is designed to automate PC tasks by dynamically calculating the wait time between actions based on system performance and WiFi signal strength. This library is particularly useful for scripting and automation tasks where timing is critical, and variations in system resources and network conditions can impact the execution of actions.

## Installation

To use the Nano-Wait library, ensure that the necessary dependencies are installed:
```bash
pip install pywifi psutil
```

## Initialization

Before using the Nano-Wait library, you need to create an instance of the PCAutomation class. This instance will provide methods to calculate wait times based on your PC's performance and WiFi signal strength.

```
from biblioteca import PCAutomation

# Initialize the automation
automation = PCAutomation()
```
## Parameters

speed
Type: int
Range: 1 to 10
Description: This parameter controls the desired speed of automation. A value of 1 represents the slowest speed with the longest wait times, while a value of 10 represents the fastest speed with the shortest wait times. Adjust this parameter based on your specific requirements and system performance.

## Main Functions

wait_wifi(speed)
Description: Calculates the necessary wait time between actions when considering both PC performance and WiFi signal strength.
Parameters:
speed (int): A value between 1 and 10 that controls the speed of automation.
Returns: The calculated wait time in seconds as a float.

Below is an example of how to use the Nano-Wait library in a Python automation script:

```
import pyautogui
import time
from biblioteca import PCAutomation

# Initialize the automation
automation = PCAutomation()

# Set the desired speed of automation
speed = 1

# Press the Windows key and wait for the appropriate time
wait_time = automation.wait_n_wifi(speed=speed)
pyautogui.press('win')
time.sleep(wait_time)

# Type 'chrome' and wait for the appropriate time
wait_time = automation.wait_n_wifi(speed=speed)
pyautogui.write('chrome', interval=0.1)
time.sleep(wait_time)

# Press 'Enter' to open Chrome and wait for the appropriate time
wait_time = automation.wait_wifi(speed=speed)
pyautogui.press('enter')
time.sleep(wait_time)  # Wait for Chrome to open

# Type the URL of YouTube and wait for the appropriate time
wait_time = automation.wait_wifi(speed=speed)
pyautogui.write('youtube.com', interval=0.1)
time.sleep(wait_time)

# Press 'Enter' to go to YouTube and wait for the appropriate time
wait_time = automation.wait_n_wifi(speed=speed)
pyautogui.press('enter')
Detailed Functionality
get_wifi_signal()
Description: Scans the available WiFi networks and returns a score (0-10) based on the signal strength of a specified WiFi network.
Internal Usage: Used within the wait_wifi function to determine the WiFi score.
get_pc_score()
Description: Computes a score (0-10) based on CPU and memory usage, indicating the PC's performance.
Internal Usage: Used within both wait_wifi and wait_n_wifi functions to determine the PC performance score.
Conclusion
The Nano-Wait library provides a simple yet powerful way to manage wait times in PC automation scripts by dynamically adjusting based on system and network conditions. By configuring the speed parameter, users can control the pace of automation to match their specific needs.
```
=======
# NanoWait

**NanoWait** é uma biblioteca Python para automação de tarefas com ajuste dinâmico do tempo de espera com base na qualidade da conexão WiFi e no desempenho do computador. É ideal para situações onde o tempo de espera deve ser ajustado de acordo com a condição da rede e do sistema para garantir que as operações de automação sejam executadas suavemente.

**Requisitos**
Antes de usar o NanoWait, você deve instalar as seguintes bibliotecas:

    pywifi: Para verificar a qualidade do sinal WiFi.
    psutil: Para monitorar o desempenho do sistema.
    pyautogui: Para realizar ações de automação no computador.

**Principais Funções**
wait_wifi: Ela deve ser passada junto com speed e ssid. Ela calcula o tempo de espera considerando o Wifi e o processamento do PC.
wait_n_wifi: Ela deve ser passada junto com speed. Ela calcula o tempo de espera considerando o processamento do PC no momento.
>>>>>>> 01ab9c961b388fc5b69865a3b28d04b4be6679c2

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "nano-wait",
    "maintainer": null,
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": "automation automa\u00e7\u00e3o wifi wait",
    "author": "Luiz Filipe Seabra de Marco",
    "author_email": "luizfilipeseabra@icloud.com",
    "download_url": null,
    "platform": null,
    "description": "<<<<<<< HEAD\r\n# Nano-Wait Library Documentation\r\n\r\n## Overview\r\n\r\nThe Nano-Wait library is designed to automate PC tasks by dynamically calculating the wait time between actions based on system performance and WiFi signal strength. This library is particularly useful for scripting and automation tasks where timing is critical, and variations in system resources and network conditions can impact the execution of actions.\r\n\r\n## Installation\r\n\r\nTo use the Nano-Wait library, ensure that the necessary dependencies are installed:\r\n```bash\r\npip install pywifi psutil\r\n```\r\n\r\n## Initialization\r\n\r\nBefore using the Nano-Wait library, you need to create an instance of the PCAutomation class. This instance will provide methods to calculate wait times based on your PC's performance and WiFi signal strength.\r\n\r\n```\r\nfrom biblioteca import PCAutomation\r\n\r\n# Initialize the automation\r\nautomation = PCAutomation()\r\n```\r\n## Parameters\r\n\r\nspeed\r\nType: int\r\nRange: 1 to 10\r\nDescription: This parameter controls the desired speed of automation. A value of 1 represents the slowest speed with the longest wait times, while a value of 10 represents the fastest speed with the shortest wait times. Adjust this parameter based on your specific requirements and system performance.\r\n\r\n## Main Functions\r\n\r\nwait_wifi(speed)\r\nDescription: Calculates the necessary wait time between actions when considering both PC performance and WiFi signal strength.\r\nParameters:\r\nspeed (int): A value between 1 and 10 that controls the speed of automation.\r\nReturns: The calculated wait time in seconds as a float.\r\n\r\nBelow is an example of how to use the Nano-Wait library in a Python automation script:\r\n\r\n```\r\nimport pyautogui\r\nimport time\r\nfrom biblioteca import PCAutomation\r\n\r\n# Initialize the automation\r\nautomation = PCAutomation()\r\n\r\n# Set the desired speed of automation\r\nspeed = 1\r\n\r\n# Press the Windows key and wait for the appropriate time\r\nwait_time = automation.wait_n_wifi(speed=speed)\r\npyautogui.press('win')\r\ntime.sleep(wait_time)\r\n\r\n# Type 'chrome' and wait for the appropriate time\r\nwait_time = automation.wait_n_wifi(speed=speed)\r\npyautogui.write('chrome', interval=0.1)\r\ntime.sleep(wait_time)\r\n\r\n# Press 'Enter' to open Chrome and wait for the appropriate time\r\nwait_time = automation.wait_wifi(speed=speed)\r\npyautogui.press('enter')\r\ntime.sleep(wait_time)  # Wait for Chrome to open\r\n\r\n# Type the URL of YouTube and wait for the appropriate time\r\nwait_time = automation.wait_wifi(speed=speed)\r\npyautogui.write('youtube.com', interval=0.1)\r\ntime.sleep(wait_time)\r\n\r\n# Press 'Enter' to go to YouTube and wait for the appropriate time\r\nwait_time = automation.wait_n_wifi(speed=speed)\r\npyautogui.press('enter')\r\nDetailed Functionality\r\nget_wifi_signal()\r\nDescription: Scans the available WiFi networks and returns a score (0-10) based on the signal strength of a specified WiFi network.\r\nInternal Usage: Used within the wait_wifi function to determine the WiFi score.\r\nget_pc_score()\r\nDescription: Computes a score (0-10) based on CPU and memory usage, indicating the PC's performance.\r\nInternal Usage: Used within both wait_wifi and wait_n_wifi functions to determine the PC performance score.\r\nConclusion\r\nThe Nano-Wait library provides a simple yet powerful way to manage wait times in PC automation scripts by dynamically adjusting based on system and network conditions. By configuring the speed parameter, users can control the pace of automation to match their specific needs.\r\n```\r\n=======\r\n# NanoWait\r\n\r\n**NanoWait** \u00c3\u00a9 uma biblioteca Python para automa\u00c3\u00a7\u00c3\u00a3o de tarefas com ajuste din\u00c3\u00a2mico do tempo de espera com base na qualidade da conex\u00c3\u00a3o WiFi e no desempenho do computador. \u00c3\u2030 ideal para situa\u00c3\u00a7\u00c3\u00b5es onde o tempo de espera deve ser ajustado de acordo com a condi\u00c3\u00a7\u00c3\u00a3o da rede e do sistema para garantir que as opera\u00c3\u00a7\u00c3\u00b5es de automa\u00c3\u00a7\u00c3\u00a3o sejam executadas suavemente.\r\n\r\n**Requisitos**\r\nAntes de usar o NanoWait, voc\u00c3\u00aa deve instalar as seguintes bibliotecas:\r\n\r\n    pywifi: Para verificar a qualidade do sinal WiFi.\r\n    psutil: Para monitorar o desempenho do sistema.\r\n    pyautogui: Para realizar a\u00c3\u00a7\u00c3\u00b5es de automa\u00c3\u00a7\u00c3\u00a3o no computador.\r\n\r\n**Principais Fun\u00c3\u00a7\u00c3\u00b5es**\r\nwait_wifi: Ela deve ser passada junto com speed e ssid. Ela calcula o tempo de espera considerando o Wifi e o processamento do PC.\r\nwait_n_wifi: Ela deve ser passada junto com speed. Ela calcula o tempo de espera considerando o processamento do PC no momento.\r\n>>>>>>> 01ab9c961b388fc5b69865a3b28d04b4be6679c2\r\n",
    "bugtrack_url": null,
    "license": "MIT License",
    "summary": "Waiting Time Calculation for Automations Based on WiFi and PC Processing",
    "version": "0.0.2",
    "project_urls": null,
    "split_keywords": [
        "automation",
        "automa\u00e7\u00e3o",
        "wifi",
        "wait"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "830081298eb3cd32a064a5eb2e5f2a92f8ec327337501af5eee7ca2afbbf97e9",
                "md5": "f33ff8bddb84ea7c5dfa6050c63557c3",
                "sha256": "d2adc6c435a2cdf445a1dfc6004772ccfb74ce0b5a0ae68fecc1b40a1e18a223"
            },
            "downloads": -1,
            "filename": "nano_wait-0.0.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "f33ff8bddb84ea7c5dfa6050c63557c3",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 4675,
            "upload_time": "2024-08-10T16:35:54",
            "upload_time_iso_8601": "2024-08-10T16:35:54.446607Z",
            "url": "https://files.pythonhosted.org/packages/83/00/81298eb3cd32a064a5eb2e5f2a92f8ec327337501af5eee7ca2afbbf97e9/nano_wait-0.0.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-08-10 16:35:54",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "nano-wait"
}
        
Elapsed time: 0.79746s