youtube2mp3
A wrapper to simplify youtube downloads with yt-dlp
Downloaded files will be tagged with mutagen.
installation
with pip
pip install youtube2mp3
usage
youtube2mp3 [options] arg1 arg2
see youtube2mp3 -h for more information
Options:
-h, --help show this help message and exit
-d DIRECTORY, --directory=DIRECTORY
directory to store the files
-y YOUTUBE_URL, --youtube-url=YOUTUBE_URL
link to a youtube video or playlist. Or path to a file
with yt urls.
-V, --version show version and exit
development
The project is managed with uv. Create the virtual environment and install all dependencies
uv sync
run the tool from source
uv run youtube2mp3 -d <directory> -y <url>
run the tests (ffmpeg is required for the conversion tests)
uv run pytest
the real youtube downloads are skipped by default, enable them with
YOUTUBE2MP3_NETWORK_TESTS=1 uv run pytest
YouTube downloads need a JavaScript runtime for yt-dlp, see yt-dlp EJS (e.g. install deno).
Metadata
Release files for youtube2mp3 2.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| youtube2mp3-2.1.1.tar.gz | 16.1 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| youtube2mp3-2.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 28.0 kB
Release files / youtube2mp3-2.1.1.tar.gz
| Download URL | youtube2mp3-2.1.1.tar.gz |
|---|---|
| Size | 16.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ad90929455a06bd5dd209e8a4002356723d8937e91362c35ab6343e25da2cd69
|
|
BLAKE2b-256 checksum How to use checksums |
cd4bf956cd2fc41c21a7d825781cac475dc69b6ff6273b36b64d9ece9d32a10b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Release files / youtube2mp3-2.1.1-py3-none-any.whl
| Download URL | youtube2mp3-2.1.1-py3-none-any.whl |
|---|---|
| Size | 11.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6cd3e51c476b16b0864e9a130da3a7e13782e4575ab0b6191035d530cf4ace9f
|
|
BLAKE2b-256 checksum How to use checksums |
d78d71d67bf43915532d9537be52385177f0bdc7bb6e30961cd4408ba56f966e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Security for youtube2mp3 2.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.