Looking for an easy-to-use API or GUI to search for music, instead of using the CLI or building your own integration? Check out yutify — it’s powered by yutipy!
A simple Python package to interact with various music platforms APIs.
- Simple & Easy integration with popular music APIs.
- Search for music by artist and song title across multiple platforms.
- Async support for Deezer, iTunes, KKBOX, Spotify, and YouTube Music.
- Authorize and access user resources easily.
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.
Deezer: https://www.deezer.comiTunes: https://music.apple.comKKBOX: https://www.kkbox.comLastfm: https://last.fmSpotify: https://spotify.comYouTube Music: https://music.youtube.com
You can install the package using pip. Make sure you have Python 3.10 or higher installed.
pip install -U yutipyHere'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 asynchronous usage, you can use the matching async service class from the yutipy.async_* modules. For example:
import asyncio
from yutipy.async_deezer import AsyncDeezer
async def main():
async with AsyncDeezer() as deezer:
result = await deezer.search("Artist Name", "Song Title")
print(result)
asyncio.run(main())For more usage examples, see the Usage Examples page in docs.
The yutipy package includes a CLI tool that allows you to search for music directly from the command line and configure API keys interactively.
You can use the CLI tool to search for music across multiple platforms:
yutipy-cli --artist "Rick Astley" --song "Never Gonna Give You Up" --service spotifyartist(required): The name of the artist.song(required): The title of the song.--service(required): Specify a single service to search (e.g.,deezer,spotify,itunes).--limit: The number of results to retrieve (default: 5).--verbose: Enable logging in the terminal.--version: Show installed yutipy version and exit.
To set up your API keys interactively, use the configuration wizard:
yutipy-configThe 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.
Contributions are welcome! Please follow these steps:
- Fork the repository.
- Optionally, create an issue to discuss the changes you plan to make.
- Create a new branch linked to that issue.
- Make your changes in the new branch.
- Write tests if you add new functionality.
- Ensure all tests pass before opening a pull request.
- Open a pull request for review.
Thank you for your contributions!
This project is licensed under the MIT License. See the LICENSE file for details.
