Skip to main content

A simple package for retrieving music information from various music platforms APIs.

Project description

yutipy

GitHub Actions Workflow Status PyPI Documentation Status License Stars Issues

A simple Python package for searching and retrieving music information from various music platforms APIs, including Deezer, iTunes, Spotify, and YouTube Music.

Table of Contents

Features

  • Simple & Easy integration with popular music APIs.
  • Search for music by artist and song title across multiple platforms.
  • It uses RapidFuzz to compare & return the best match so that you can be sure you got what you asked for without having to worry and doing all that work by yourself.
  • Retrieve detailed music information, including album art, release dates, lyrics, ISRC, and UPC codes.
  • Authorize and access user resources easily.

Available Music Platforms

Right now, the following music platforms are available in yutipy for searching music. New platforms will be added in the future. Feel free to request any music platform you would like me to add by opening an issue on GitHub or by emailing me.

Installation

You can install the package using pip. Make sure you have Python 3.9 or higher installed.

pip install -U yutipy

Usage Example

Here's a quick example of how to use the yutipy package to search for a song on Deezer:

from yutipy.deezer import Deezer

with Deezer() as deezer:
    result = deezer.search("Artist Name", "Song Title")
    print(result)

For more usage examples, see the Usage Examples page in docs.

Command-Line Interface (CLI)

The yutipy package includes a CLI tool that allows you to search for music directly from the command line and configure API keys interactively.

Search for Music

You can use the CLI tool to search for music across multiple platforms:

yutipy-cli "Rick Astley" "Never Gonna Give You Up" --limit 3 --normalize

Options:

  • artist (required): The name of the artist.
  • song (required): The title of the song.
  • --limit: The number of results to retrieve (default: 5).
  • --normalize: Normalize non-English characters for comparison.
  • --verbose: Enable logging in the terminal.
  • --service: Specify a single service to search (e.g., deezer, spotify, itunes).

Configuration Wizard

To set up your API keys interactively, use the configuration wizard:

yutipy-config

The wizard will guide you through obtaining and setting up API keys for supported services like Spotify and KKBOX. If the required environment variables are already set, the wizard will skip those steps.

Contributing

Contributions are welcome! Please follow these steps:

  1. Fork the repository.
  2. Optionally, create an issue to discuss the changes you plan to make.
  3. Create a new branch linked to that issue.
  4. Make your changes in the new branch.
  5. Write tests if you add new functionality.
  6. Ensure all tests pass before opening a pull request.
  7. Open a pull request for review.

Thank you for your contributions!

License

This project is licensed under the MIT License. See the LICENSE file for details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

yutipy-2.1.0.tar.gz (103.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

yutipy-2.1.0-py3-none-any.whl (32.6 kB view details)

Uploaded Python 3

File details

Details for the file yutipy-2.1.0.tar.gz.

File metadata

  • Download URL: yutipy-2.1.0.tar.gz
  • Upload date:
  • Size: 103.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for yutipy-2.1.0.tar.gz
Algorithm Hash digest
SHA256 ca6f702eed5d3c9fa6c5a9f776b2647ec3ce2b4e012ededdc519690d1b05f341
MD5 df9d325a07375ee9bb611a6e4583035f
BLAKE2b-256 07d8b3233c68f37ce809cd3d6aac53d08839b674549ed3fc8f9a3b1c86ecfed3

See more details on using hashes here.

Provenance

The following attestation bundles were made for yutipy-2.1.0.tar.gz:

Publisher: release.yml on CheapNightbot/yutipy

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file yutipy-2.1.0-py3-none-any.whl.

File metadata

  • Download URL: yutipy-2.1.0-py3-none-any.whl
  • Upload date:
  • Size: 32.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for yutipy-2.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 40628f6b3df0b559455fbd7279a195ac2a94fc508ded273bcba28a6d57c62cdd
MD5 89cc144d0cb3a95b2a80398a58659bd0
BLAKE2b-256 4448852518f66f5e1b9e158854ff99015860c82894025af3e9cf0031d8a79aa0

See more details on using hashes here.

Provenance

The following attestation bundles were made for yutipy-2.1.0-py3-none-any.whl:

Publisher: release.yml on CheapNightbot/yutipy

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page