semvec/pypi-packages huggingface dataset:
m3u8toMP3 0.1.1
Convert your m3u8 files to MP3
Requires Python: <4.0,>=3.10

# m3u8toMP3 

Based on **asvatov/m3u82mp3** simple module, the program converts m3u8 
audio streams to MP3 files.

Key features:

- Asynchronous (asyncio)
- Can be used both with terminal (bash, cmd) and inside your python scripts.
- Can work with URLs, local paths to your M3U8 files and with
  raw bytes objects inside your scripts.
- ffmpeg tends to cut the beginning and the ending of 
  streams when converting to MP3, the script fixes this issue.

## Dependencies

The script requires **ffmpeg** to be installed on your system.

You can install it using following commands:

MacOS:
```shell
brew install ffmpeg
```
Debian/Ubuntu:
```shell
apt update && apt upgrade
apt install ffmpeg
```
For Windows and other OS, please refer to the according tutorial 
on the internet.

To make sure the ffmpeg was installed properly, 
execute the following command in your terminal:
```shell
ffmpeg -h
```
If you get any errors ("command not found: ffmpeg", for example) 
then something went wrong during ffmpeg installation.
Please try reinstalling or find help on the Internet.


## Installation and usage as an executable

Download the latest release from the 
[Releases](https://github.com/Suoslex/m3u8toMP3/releases) page.
For example:

```shell
curl -o m3u8toMP3 https://github.com/Suoslex/m3u8toMP3/releases/download/0.1.1/m3u8toMP3_0.1.1_linux
```

Give execute permissions to the binary:

```shell
chmod +x ./m3u8toMP3
```

Use the following syntax to convert your m3u8 files to MP3. 
You can use both URLs and local paths:

```shell
./m3u8toMP3 "https://some-site.com/file.m3u8"
./m3u8toMP3 "<path/to/file.m3u8"
```

If you want to specify a name for the output MP3 file, 
add one more argument to the command:

```shell
./m3u8toMP3 "<path/to/file.m3u8" "./output.mp3"
```

If you want to use the program without directory path, you can, for example,
append PATH variable with the current path, or move the binary to 
/usr/local/bin:

```shell
mv ./m3u8toMP3 /usr/local/bin/m3u8toMP3
```

And then you can run the program anywhere:

```shell
m3u8toMP3 "https://some-site.com/index.m3u8"
```


## Installation and usage as a python script

Install the package using your favorite package manager. 
For example, using pip:

```shell
pip install m3u8toMP3
```

To run the script from the command line, use the following syntax:

```shell
python -m m3u8toMP3 "<path_to_m3u8_file>" "<path_to_save_mp3_file"
```

To use the script in your code, 
you need to import the **convert_m3u8_to_mp3** function:

```python
from m3u8toMP3 import convert_m3u8_to_mp3
...

async def main():
    await convert_m3u8_to_mp3("path/to/file.m3u8", "path/to/output.mp3")
    ...
```

If you want to work with in-memory bytes objects, use the class M3u8Converter:
```python
from m3u8toMP3 import M3u8Converter
...

async def main():
    mp3_bytes = await M3u8Converter.convert_to_mp3(m3u8_bytes)
    ...
```
atsphinx-pythontutor 0.2.0
Embedding iframe from https://pythontutor.com
Requires Python: >=3.9

====================
atsphinx-pythontutor
====================

Embedding iframe from https://pythontutor.com

Getting started
===============

.. code:: console

   pip install atsphinx-pythontutor

Usage
=====

1. Register your ``conf.py``.

.. code:: python

   extensions = [
       ...,
       "atsphinx.pythontutor",
   ]


2. Write ``pythontutor`` directive into your doc.

.. code:: rst

   .. pythontutor::
      :width: 800

      items = ["a", "b", "c"]

      for item in items:
          print(item.upper())
tsq 0.0.18
A Friendly Task Scheduler Frontend
Requires Python: >=3.8

# A Friendly Task Scheduler Frontend

## Introduction

## Installation

```shell
pip install tsq
```

Cutting edge version from the repository:
```shell
pip install git+https://github.com/admk/tsq.git
```

## Usage

Here’s an instruction on how to use `tq`, the front-end CLI for task-spooler:

### Basic Usage

```bash
tq [options] [command]
```

### Common Commands:

1. **list** (`ls`): Shows job information in a compact format.
   Or simply call `tq` without any arguments.
   ```bash
   tq list
   ```

2. **ids** (`id`): Displays the job IDs.
   ```bash
   tq ids
   ```

3. **info**: Provides detailed job information.
   ```bash
   tq info
   ```

4. **commands** (`cmd`): Shows the commands of all jobs.
   ```bash
   tq commands
   ```

5. **outputs** (`out`): Displays job outputs.
   ```bash
   tq outputs
   ```

6. **add** (`a`): Add a new job to the queue.
   ```bash
   tq add [options] <command>
   ```
   - `-G`: Specify the number of GPUs required.
   - `-N`: Specify the number of slots required.
   - `-u`: Ensure the command is unique.
   - `-f`: Add jobs from a file or standard input.

7. **wait** (`w`): Wait for jobs to finish.
   ```bash
   tq wait
   ```

8. **kill** (`k`): Kill running jobs.
   ```bash
   tq kill <job_id>
   ```

9. **remove** (`rm`): Remove jobs from the queue.
   ```bash
   tq remove <job_id>
   ```

10. **rerun** (`rr`): Rerun a job.
   ```bash
   tq rerun <job_id>
   ```

11. **requeue** (`rq`): Requeue a job.
   ```bash
   tq requeue <job_id>
   ```

### Additional Options:
- `-V`: Print version info.
- `-rc`: Use a specific configuration file.
- `-b`: Specify the backend (`dummy`, `ts`).
- `-g`: Assign a group to a job.

For adding a job with multiple resources:
```bash
tq add -G 2 -N 4 "python train_model.py"
```

For reading jobs from a file:
```bash
tq add -f job_list.txt
```
bin-color-text 0.1.3
A tool for printing colored strings in the terminal
Requires Python: >=3.6

```python
from bin_color_text import *

# rgb颜色示例
print(colorTxt("666"))
print(colorTxt("666", foreground=color(255, 0, 80)))
print(colorTxt("666", background=color(255, 100, 0)))
print(colorTxt("666", foreground=color(0, 255, 0)))
print(colorTxt("666", background=color(0, 0, 255)))
print(colorTxt("666", foreground=color(255, 255, 0), background=color(0, 255, 255)))
print()
# 16进制颜色示例
print(colorTxt("666", foreground=color("#FF0050")))
print(colorTxt("666", background=color("#FF6400")))
print(colorTxt("666", foreground=color("#00FF00")))
print(colorTxt("666", background=color("#0000FF")))
print(colorTxt("666", foreground=color("#FFFF00"), background=color("#00FFFF")))
```
django-polls-dlt 0.1
A Django app to conduct web-based polls.
Requires Python: >=3.10

============
django-polls
============

django-polls is a Django app to conduct web-based polls. For each
question, visitors can choose between a fixed number of answers.

Detailed documentation is in the "docs" directory.

Quick start
-----------

1. Add "polls" to your INSTALLED_APPS setting like this::

    INSTALLED_APPS = [
        ...,
        "django_polls_dlt",
    ]

2. Include the polls URLconf in your project urls.py like this::

    path("polls/", include("django_polls_dlt.urls")),

3. Run ``python manage.py migrate`` to create the models.

4. Start the development server and visit the admin to create a poll.

5. Visit the ``/polls/`` URL to participate in the poll.