semvec/pypi-packages huggingface dataset:
ytlisten 0.24
A command-line tool to search and listen to YouTube audio
License: MIT

# ytlisten

`ytlisten` is a command-line based YouTube audio player that allows you to search and play YouTube videos as audio. This is a Python application that uses the YouTube API to search for and retrieve videos and uses the VLC media player to play the audio.

## Installation

1. Install the VLC app

    ```
    # Linux
    sudo apt-get install vlc # Linux
    
    # Mac
    brew install vlc
    ```

    Before installing ytlisten, you must first install the VLC media player. You can download it from the official VLC website at https://www.videolan.org/vlc/#download. Make sure to install the version that corresponds to your operating system.

2. Get a YouTube API Key from Google:

- Go to the [Google Developers Console](https://console.developers.google.com).
- Create a new project.
- In the left sidebar, click on "APIs & Services" and then "Library".
- Search for "YouTube Data API v3" and click on it.
- Click the "Enable" button.
- In the left sidebar, click on "Credentials".
- Click the "Create credentials" button and select "API key".
- Copy the generated API key.
- In your terminal, create a new environment variable called `YT_API_KEY` and set its value to your API key:

    ```
    export YT_API_KEY="YOUR_API_KEY_HERE"
    ```

3. Install `ylisten` using pip

    ```
    pip install ylisten
    ```

## Usage

Once installed, you can use the ytlisten command to search for and play audio tracks from Youtube. Here's an example:

```
ytlisten despacito
```

This will search Youtube for the keyword "despacito" and play the audio from the first video in the search results. You can also specify a Youtube video URL directly:

```
ytlisten https://www.youtube.com/watch?v=kJQP7kiw5Fk
```

That's it! You should now be able to run ytlisten and search for and listen to YouTube videos from the command line.

## Limitations

Please note that `ytlisten` is not an official YouTube client and is not affiliated with YouTube in any way. It's a simple command-line tool that uses the YouTube Data API to search for and play YouTube videos as audio files.

Also, keep in mind that the YouTube Data API has certain usage limits and quota restrictions. If you exceed these limits, your API key may be temporarily or permanently blocked by Google. Please refer to the official documentation for more information.

## Contributions / Development

Contributions are welcome!

```
python setup.py sdist bdist_wheel
# https://packaging.python.org/en/latest/guides/distributing-packages-using-setuptools/#create-an-account
twine upload dist/*
```

## License

[MIT License](LICENSE.md)
sihm 0.0.5
Standalone Interactive HTML Movie (SIHM).
License: MIT

# Standalone Interactive HTML Movie (SIHM)

**A highly-portable, interactive way to visualize your simulations.**

![Continuous integration](https://github.com/leakec/sihm/actions/workflows/ci.yml/badge.svg)
![PyPI version](https://img.shields.io/pypi/v/sihm)

[**Summary**](#summary) | [**Examples**](https://leakec.github.io/sihm) | [**Installation guide**](#installation)

## Summary

This package provides `sihm`, a command-line tool that takes as input a YAML file that defines geometry and properties of that geometry&mdash;position, velocity, color, etc.&mdash;vs. time and turns it into a standalone, interactive HTML movie.

-   The output is a movie in the sense that the trajectories vs. time are fixed. You'll be able to pause, play, rewind, loop, etc. as a movie would.
-   The output is interactive because you can move the camera around while the video is playing (or paused). You can also "attach" the camera to an object and follow that object around the sim.
-   The output is a standalone HTML file, i.e., it is the only file you will need to run the interactive movie.
-   HTML was selected because it is extermely portable. The output should work anywhere: Linux, Mac, Windows, your cell phone, etc.

## Examples

Examples of `sihm`'s output can be found [here](https://leakec.github.io/sihm).

## Installation

### Linux

-   Install the python package: `pip install sihm`
-   Install the appropriate package&mdash;`rpm` or `deb`, depending on you OS&mdash; from the latest release.

### Mac

-   Install the python package: `pip install sihm`
-   Download and install the brew package from the latest release, e.g., `brew install sihm*.rb`.

### Windows

-   Install the python package: `pip install sihm`
-   Install the system dependencies
    -   yarn
    -   nodejs >= 16
    -   cmake