semvec/pypi-packages huggingface dataset:
selenium-findtext 0.1.5
Text finding helpers for Selenium tests
License: MIT

# Selenium Text Finding Utilities

Make your tests user-first by using these utilities to test against the
presented content on the page, not the implementation detail of specific
markup.

## Find Elements by Text

The most powerful utilities are `find_element_by_text(driver, text)` and
`find_elements_by_text(driver, text)`, which search the page for one or
multiple elements with content matching the given text, as efficiently as
possible. By default, the inner text must match exactly.


Call with the flag `exact=False` to find elements which simply
_contain_ the text.

For example::

```python
    # Find the logout element and click it, whatever it might be
    findtext.find_element_by_text(driver, 'Logout').click()
```

## Form Helpers

You can locate and interact with form elements based on their labels, the
way a user would find things on the page and the way your features are most
likely to be documented.

### `fill_input_by_label(driver, element, label, value, timeout=None):`

Interact with text fields on the page based on their visible label. Here is
how you might fill in a login form:

```python
    fill_input_by_label(driver, None, "Username", username)
    fill_input_by_label(driver, None, "Password", username)
```

Notice how you don't need to know anything about the markup on the page, the
ID of the input elements, or if the label text is "Username" or
"Username:".

If you only want to look at a part of the page, not the whole page, you can
pass an optional element as the second parameter. The search will be done
to descendents under that element.

### `fill_input_by_placeholder(driver, element, label, value):`

You might also know youb can locate an element based on the placeholder text
that can be read in the input. This function is called just like the previous
function.

### `read_input_by_label(driver, element, label):`

You can use the same logic to read information back out of forms, too.

```python
    assert expected == read_input_by_label(driver, None, "State")
```
audio2numpy 0.1.2
Load audio file to numpy array
License: MIT
Keywords: audio, audio reader

# audio2numpy
[![Build Status](https://travis-ci.com/wiccy46/audio2numpy.svg?branch=master)](https://travis-ci.com/wiccy46/audio2numpy)

## Description

audio2numpy load an audio file and directly ouputs the audio data as a numpy array and its sampling rate. Supports .wav, .aiff via python's standard library, and .mp3 via ffmpeg.

## Installation

Using pip:

    pip install audio2numpy

## FFmpeg for decoding mp3
audio2numpy requires ffmpeg to decode mp3 files. You would need to install ffmpeg in order to have mp3 support. 

### macOS
    homebrew install ffmpeg

### Linux
    sudo apt-get install ffmpeg
[Check here](https://www.ostechnix.com/install-ffmpeg-linux/) for other installation methods for different Linux distributions. 

### Windows
- Download the latest distribution from https://ffmpeg.zeranoe.com/builds/
- Unzip the folder, preferably to `C:\`
- Append the FFmpeg binary folder (e.g. `C:\ffmpeg\bin`) to the PATH system variable ([How do I set or change the PATH system variable?](https://www.java.com/en/download/help/path.xml))

## Usage

    from audio2numpy import open_audio
    fp = "./examples/word.mp3"  # change to the correct path to your file accordingly
    signal, sampling_rate = open_audio(fp)

## Version History

**0.1.2 (20.08.2019)**

Add instructions to install ffmpeg if load mp3 failed with ffmpeg backend not available. 

**0.1.1 (14.08.2019)**

Initial release.