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
Release history Release notifications | RSS feed
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)
Built Distribution
Close
Hashes for vkpymusic-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 48417a2d34950b3b568a774e9cf63edec3ecb465cc21bd9762d8b7c78b6c297d |
|
MD5 | 5803c05af2517f448afc3e278757abee |
|
BLAKE2b-256 | d84e6c171421583cbd23b1ea244250c73ab2ffe0d587bf038b428af0dde293e4 |