semvec/pypi-packages huggingface dataset:
autoz 0.0.1
web automation tool selenium based
Requires Python: >=3.8

#autoz usage
pip install autoz

#NB -> the functions only take in xpath

#script
from autoz.kit import *
from time import sleep

#init drivers, browser bin, background features
#the script will run in background unless background is set to False
init()

#go to a page
go('https://odibets.com/live/')


# Search button
find_click('/html/body/div[1]/div/div[2]/div[1]/div[3]')

# Input area
find_click('//*[@id="modal"]/div/div[1]/input')

# Enter code
clear_input('//*[@id="modal"]/div/div[1]/input', '1127')

# Teams
home = extract_text('/html/body/div[1]/div/div[8]/div/div[2]/div/div[2]/div/div[2]/div/div[1]/a/div[1]')
away = extract_text(d, '/html/body/div[1]/div/div[8]/div/div[2]/div/div[2]/div/div[2]/div/div[2]/div/div[1]/a/div[2]')

# get Scores by extracting text
home_score = extract_text('/html/body/div[1]/div/div[8]/div/div[2]/div/div[2]/div/div[2]/div/div[1]/div/span[1]')
away_score = extract_text('/html/body/div[1]/div/div[8]/div/div[2]/div/div[2]/div/div[2]/div/div[1]/div/span[2]')

print(f'{home} - {away}')
print(f'scores: {home_score} - {away_score}')

#excute bash commands inside python
execute_bash(f"echo '{home} - {away} ,scores: {home_score}:{away_score}' > ball.txt")

#want path of file
f_path=find_file('ball.txt')

sleep(1000)
pyElectra 1.2.4
Electra Smart Python Integration.
Requires Python: >=3.9
Keywords: home, automation, Electra, smart, Electra Smart, Air Condition

# pyElectra

![PyPI](https://img.shields.io/pypi/v/pyelectra?label=pypi%20package)
![PyPI - Downloads](https://img.shields.io/pypi/dm/pyelectra)

Python library to control Electra Smart Air Condtioiner devices


Usage:

```python
import asyncio

import aiohttp

from electrasmart import *


async def main():
    session = aiohttp.ClientSession(connector=aiohttp.TCPConnector(ssl=False), timeout=aiohttp.ClientTimeout(total=10))
    api = ElectraAPI(session)

    # User phone number
    phone_number = "0521234567"
    # Generate token
    imei = generate_imei()
    try:
        resp = await api.generate_new_token(phone_number=phone_number, imei=imei)
    except ElectraApiError as e:
        # handle error
        pass

    otp = input("Enter the OTP you recieved via SMS")
    # more error handling
    if resp[electra.ATTR_STATUS] == electra.STATUS_SUCCESS:
        if resp[electra.ATTR_DATA][electra.ATTR_RES] != electra.STATUS_SUCCESS:
            # Wrong phone number or unregistered user
            sys.exit(1)
     
        resp = await api.validate_one_time_password(otp=otp, imei=imei, phone_number=phone_number)
        if resp[electra.ATTR_DATA][electra.ATTR_RES] == electra.STATUS_SUCCESS:
            token = resp[electra.ATTR_DATA][electra.ATTR_TOKEN]
        else:
            # wrong OTP
            sys.exit(1)
    
    ac_devices = api.get_devices()
    for ac in ac_devices:
        assert(ac, ElectraAirConditioner)
        if ac.name == "Saloon AC":
            ac.turn_on()
            ac.set_mode(OPER_MODE_COOL)
            ac.set_temperature(17)
            ac.set_fan_speed(OPER_FAN_SPEED_HIGH)
            ac.set_vertical_swing(OPER_ON)
            api.set_state(ac)  # This will send the conf to the AC


loop = asyncio.get_event_loop()
loop.run_until_complete(main())

```
pdf-text-digitizer 0.1.0
A package for digitizing text from PDF files.
Requires Python: >=3.6

# PDF Text Digitizer

PDF Text Digitizer is a Python tool to extract text from PDF files. It supports both text-based PDFs and image-based PDFs using OCR.

## Features

- Extracts text from text-based PDFs.
- Extracts text from image-based PDFs using OCR.
- Simple API for easy integration.

## Installation

Clone the repository and install the dependencies:

```sh
git clone https://github.com/yourusername/pdf-text-digitizer.git
cd pdf-text-digitizer
pip install -r requirements.txt
```

## Usage
```python
from pdf_text_digitizer.digitize import digitize_pdf

text = digitize_pdf('path/to/your/pdf_file.pdf')
print(text)
```

## Examples

You can find example usage in the examples directory. To run the example:

```sh
python examples/example_usage.py
```

## License

This project is licensed under the MIT License. See the LICENSE file for details.