Skip to main content

pypi youtube2mp3 on pypi PyPI - Downloads Unit Tests

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).

Buy Me a Beer

Metadata

Release files for youtube2mp3 2.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for youtube2mp3 2.1.2
File Size Uploaded Provenance
youtube2mp3-2.1.2.tar.gz 16.1 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for youtube2mp3 2.1.2
File Interpreter ABI Platform
youtube2mp3-2.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 28.0 kB

Release files / youtube2mp3-2.1.2.tar.gz

Download URL youtube2mp3-2.1.2.tar.gz
Size 16.1 kB
Tags Source
SHA-256 checksum
How to use checksums
41546155e11d746572b13c7b63d3a32b407cd1f0fe099f168522be635490f473
BLAKE2b-256 checksum
How to use checksums
563f614788a23b515254efb1e0995480078e02a8b7bf0e3db3fffa5a647c8ed0
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.2-py3-none-any.whl

Download URL youtube2mp3-2.1.2-py3-none-any.whl
Size 11.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e173ec5760eddc91fd95a40a809ebccb0374dab3bd40ffcd7714493df06a0d1f
BLAKE2b-256 checksum
How to use checksums
1fc6e0cd0c804c128f78ea3dba882924d57028513dc8d4f13c0fcc58d7d19615
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.2

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page