Skip to main content


🌿 PyMusix, a tool that lets you retrieve information about a song, including details like the artist, album, release date, genres, lyrics and more. Uses Spotify and Musixmatch APIs to gather this information.

Maintained Pepy Total Downlods PyPI - Version GitHub License

📦 Installation

Install the Stable Version of pymusix from PyPi:

# Linux/macOS
python3 -m pip install -U pymusix
# Windows
py -3 -m pip install -U pymusix

OR Install the Working Version of pymusix from Github:

  1. Clone the GitHub repository:

    git clone https://github.com/TrueMyst/pymusix.git
    cd pymusix
    
  2. Install the required dependencies:

    pip install -r requirements.txt
    

After installing it anyway, set up the environment variables by creating a .env file in your root directory. The file should contain the following:

SPOTIFY_CLIENT_ID = "spotify-client-id"
SPOTIFY_CLIENT_SECRET = "spotify-client-secret"
MUSIXMATCH_USERTOKEN = "musixmatch-usertoken"

You can get the Spotify Client ID and Client Secret from the Spotify Developer Dashboard. For Musixmatch User Token, you can follow this guide here.

You are now ready to use PyMusix!

🤌 How to use?

A basic usage is shown below, for more information, please check out the examples given here.

import os
from dotenv import load_dotenv
from pymusix import PyMusix

load_dotenv()

CLIENT_ID = os.getenv("SPOTIFY_CLIENT_ID")
CLIENT_SECRET = os.getenv("SPOTIFY_CLIENT_SECRET")
USER_TOKEN = os.getenv("MUSIXMATCH_USERTOKEN")

song = PyMusix()

song.set_secrets(CLIENT_ID, CLIENT_SECRET, USER_TOKEN)
song.search_track(q_name = "Pluto Projector", q_artist = "Rex Orange County")

print("Track Name:", song.name)
print("Lyrics:", song.lyrics)
print("Primary Genre:", song.primary_genre)
# ... and more

🤗 Contributing

Contributions to pymusix are welcomed. Feel free to submit your suggestions via pull requests. Your contributions are invaluable in enhancing this tool for everyone.

📋 License

🌿 pymusix is licensed under the MIT license, which you can find in the LICENSE file.


Made with 💜
elysianmyst, 2024

Metadata

Release files for pymusix 1.0.0

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

Source distribution (sdist)

Source distribution for pymusix 1.0.0
File Size Uploaded Provenance Actions
pymusix-1.0.0.tar.gz 5.5 kB Without provenance Details for pymusix-1.0.0.tar.gz

Built distribution (wheel)

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

Total release size: 11.5 kB

Release files / pymusix-1.0.0.tar.gz

Download URL pymusix-1.0.0.tar.gz
Size 5.5 kB
Tags Source
SHA-256 checksum
How to use checksums
f3730eec3a38c645db48ce348513005f16fd3d2db184759fce9e96202092add3
BLAKE2b-256 checksum
How to use checksums
16851568dee1c7a600d3a5611174d17560a9de720613f322a9b44995424ba47f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.6

Release files / pymusix-1.0.0-py3-none-any.whl

Download URL pymusix-1.0.0-py3-none-any.whl
Size 6.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c455222f99466b15c7ed3e010491395551c7407618027b956d11f4665f7eeb80
BLAKE2b-256 checksum
How to use checksums
2ebd3e57a3a9ba86f4d8a382b7b62bf9282034ad2e74ed03dae61858f56e63dc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.6

Security for pymusix 1.0.0

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.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files No provenance

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