Skip to main content

A short description of your library

Project description

Description

VKpyMusic

is a Python library that provides a simple interface for interacting with the VKontakte (VK) music service API. The library allows developers to easily perform operations related to music and other functionalities available through the VK API.

Installation

You can install VKpyMusic using the pip package manager. Open your command prompt or terminal and execute the following command:

Console:

pip install vkpymusic

Usage

To get started with VKpyMusic, you will need a valid VK access token and user agent, which provides access to the VK music service API. But if you don't have them, it's okay - we have our own class to get it.

Example usage of VKpyMusic for receive token and user agent:

Python:

from vkpymusic import TokenReceiver

login = input("   Enter login: ")
password = input("Enter password: ")

tokenReceiver = TokenReceiver(login, password)

if tokenReceiver.auth():
    tokenReceiver.get_token()
    tokenReceiver.save_to_config()

Create an Service instance with your access token and user agent:

Python:

from vkpymusic.MusicService import Service

service = Service.parse_config()

Or you can do like this

Python:

service = Service("<your_token>", "<your_client>")

Get information about the current user

Python:

user_songs = service.get_songs_by_userid(7);
print(user_info)

Search for tracks by query

Python:

tracks = service.search('Coldplay')
print(tracks)

Documentation

Detailed documentation and usage examples for VKpyMusic can be found on the official project page on GitHub:

https://github.com/issamansur/vkpymusic

Contributions and Support

If you have any suggestions for improving VKpyMusic or if you find any issues, please create a new issue on the GitHub project page. We welcome your pull requests and are here to assist you with any problems you encounter.

License

VKpyMusic is distributed under the MIT license. For detailed information about the license, see the LICENSE file.

Authors

VKpyMusic is developed by the @issamansur or/and 'EDEXADE, inc.' development team.

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

vkpymusic-1.0.0.tar.gz (8.5 kB view hashes)

Uploaded Source

Built Distribution

vkpymusic-1.0.0-py3-none-any.whl (8.5 kB view hashes)

Uploaded Python 3

Supported by

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