![Лицензия](https://img.shields.io/badge/Лицензия-MIT-blue)
![Совместимость с Python](https://img.shields.io/badge/Python-3.8--3.12-blue)
![Версия библиотеки](https://img.shields.io/badge/pip-3.3.3-blue)
# 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.
### это библиотека Python, которая предоставляет простой интерфейс для взаимодействия с API музыкального сервиса ВКонтакте (VK). Библиотека позволяет разработчикам легко выполнять операции, связанные с музыкой и другими функциональными возможностями, доступными через VK API.
# Installation
### You can install VKpyMusic using the pip package manager. Open your command prompt or terminal and execute the following command:
### Вы можете установить VKpyMusic с помощью менеджера пакетов pip. Откройте командную строку или терминал и выполните следующую команду:
### 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.
### Чтобы начать работу с VKpyMusic, вам понадобится действительный токен доступа к VK и пользовательский агент, который предоставляет доступ к API музыкального сервиса VK. Но если у вас их нет, ничего страшного - у нас есть свой собственный класс, чтобы получить их.
## Example usage of VKpyMusic for receive token and user agent:<br>Пример использования VKpyMusic для получения токена и юзер-агента:
### 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()
```
### Result:
```
Enter login: +...........
Enter password: .........
SMS with a confirmation code has been sent to your phone! The code is valid for a few minutes!
Code: 277765
Token was received!
Token was saved!
```
## Create an Service instance with your access token and user agent:<br>Создайте экземпляр Service с вашим токеном и юзер-агентом:
### Python:
```
from vkpymusic import Service
service = Service.parse_config()
```
## Or you can do like this:<br>Или Вы можете сделать так:
### Python:
```
service = Service("<your_token>", "<your_client>")
```
## Get information about the current user<br>Получить информацию о песнях текущего пользователя
### Python:
```
user_songs = service.get_songs_by_userid(5, 10)
```
## Search for tracks by query<br>Поиск треков по запросу
### Python:
```
songs = service.search_songs_by_text("Maroon V", 5)
```
## Full example<br>Полный пример
### Python:
```
from vkpymusic import Service, TokenReceiver
login = input(" Enter login: ")
password = input("Enter password: ")
tokenReceiver = TokenReceiver(login, password)
if tokenReceiver.auth():
tokenReceiver.get_token()
tokenReceiver.save_to_config()
service = Service.parse_config()
tracks = service.search_songs_by_text('idfc tiktok remix')
Service.save_music(tracks[0])
```
# Documentation<br>Документация
### Detailed documentation and usage examples for VKpyMusic can be found on the official project page on GitHub:
### Детальная документация и примеры использования для VKpyMusic находится на официальной странице на ГитХабе:
## https://github.com/issamansur/vkpymusic
## https://issamansur.github.io/vkpymusic/
# Contributions and Support
### Если у вас есть какие-либо предложения по улучшению VKpyMusic или вы обнаружите какие-либо проблемы, пожалуйста, создайте новую проблему на странице проекта GitHub. Мы приветствуем ваши запросы на исправления и готовы помочь вам с любыми проблемами, с которыми вы столкнетесь.
### 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.
Raw data
{
"_id": null,
"home_page": "https://github.com/issamansur/vkpymusic",
"name": "vkpymusic",
"maintainer": null,
"docs_url": null,
"requires_python": "<3.12,>=3.8",
"maintainer_email": null,
"keywords": "vk, api, music, downloader, python",
"author": "Issa Mansur (EDEXADE)",
"author_email": "issa_mansur@mail.ru",
"download_url": "https://files.pythonhosted.org/packages/24/2c/99b4dd2cf4850d7ccba1076adafa3d806d14e79dd3a0e662f650beb669b1/vkpymusic-3.3.3.tar.gz",
"platform": null,
"description": "![\u041b\u0438\u0446\u0435\u043d\u0437\u0438\u044f](https://img.shields.io/badge/\u041b\u0438\u0446\u0435\u043d\u0437\u0438\u044f-MIT-blue)\n![\u0421\u043e\u0432\u043c\u0435\u0441\u0442\u0438\u043c\u043e\u0441\u0442\u044c \u0441 Python](https://img.shields.io/badge/Python-3.8--3.12-blue)\n![\u0412\u0435\u0440\u0441\u0438\u044f \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438](https://img.shields.io/badge/pip-3.3.3-blue)\n\n# VKpyMusic \n### 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.\n### \u044d\u0442\u043e \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 Python, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 \u0434\u043b\u044f \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u0441 API \u043c\u0443\u0437\u044b\u043a\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0441\u0435\u0440\u0432\u0438\u0441\u0430 \u0412\u041a\u043e\u043d\u0442\u0430\u043a\u0442\u0435 (VK). \u0411\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430\u043c \u043b\u0435\u0433\u043a\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0442\u044c \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438, \u0441\u0432\u044f\u0437\u0430\u043d\u043d\u044b\u0435 \u0441 \u043c\u0443\u0437\u044b\u043a\u043e\u0439 \u0438 \u0434\u0440\u0443\u0433\u0438\u043c\u0438 \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u044b\u043c\u0438 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044f\u043c\u0438, \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u043c\u0438 \u0447\u0435\u0440\u0435\u0437 VK API.\n\n# Installation\n### You can install VKpyMusic using the pip package manager. Open your command prompt or terminal and execute the following command:\n### \u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c VKpyMusic \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043c\u0435\u043d\u0435\u0434\u0436\u0435\u0440\u0430 \u043f\u0430\u043a\u0435\u0442\u043e\u0432 pip. \u041e\u0442\u043a\u0440\u043e\u0439\u0442\u0435 \u043a\u043e\u043c\u0430\u043d\u0434\u043d\u0443\u044e \u0441\u0442\u0440\u043e\u043a\u0443 \u0438\u043b\u0438 \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b \u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u0435 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e \u043a\u043e\u043c\u0430\u043d\u0434\u0443:\n\n### Console:\n```\npip install vkpymusic\n```\n\n# Usage\n### 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.\n### \u0427\u0442\u043e\u0431\u044b \u043d\u0430\u0447\u0430\u0442\u044c \u0440\u0430\u0431\u043e\u0442\u0443 \u0441 VKpyMusic, \u0432\u0430\u043c \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u0441\u044f \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u0442\u043e\u043a\u0435\u043d \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u043a VK \u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0439 \u0430\u0433\u0435\u043d\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0434\u043e\u0441\u0442\u0443\u043f \u043a API \u043c\u0443\u0437\u044b\u043a\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0441\u0435\u0440\u0432\u0438\u0441\u0430 VK. \u041d\u043e \u0435\u0441\u043b\u0438 \u0443 \u0432\u0430\u0441 \u0438\u0445 \u043d\u0435\u0442, \u043d\u0438\u0447\u0435\u0433\u043e \u0441\u0442\u0440\u0430\u0448\u043d\u043e\u0433\u043e - \u0443 \u043d\u0430\u0441 \u0435\u0441\u0442\u044c \u0441\u0432\u043e\u0439 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0439 \u043a\u043b\u0430\u0441\u0441, \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0438\u0445.\n\n## Example usage of VKpyMusic for receive token and user agent:<br>\u041f\u0440\u0438\u043c\u0435\u0440 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f VKpyMusic \u0434\u043b\u044f \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u0442\u043e\u043a\u0435\u043d\u0430 \u0438 \u044e\u0437\u0435\u0440-\u0430\u0433\u0435\u043d\u0442\u0430:\n### Python:\n```\nfrom vkpymusic import TokenReceiver\n\nlogin = input(\" Enter login: \")\npassword = input(\"Enter password: \")\n\ntokenReceiver = TokenReceiver(login, password)\n\nif tokenReceiver.auth():\n tokenReceiver.get_token()\n tokenReceiver.save_to_config()\n```\n### Result:\n```\n Enter login: +...........\nEnter password: .........\nSMS with a confirmation code has been sent to your phone! The code is valid for a few minutes!\nCode: 277765\nToken was received!\nToken was saved!\n```\n## Create an Service instance with your access token and user agent:<br>\u0421\u043e\u0437\u0434\u0430\u0439\u0442\u0435 \u044d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440 Service \u0441 \u0432\u0430\u0448\u0438\u043c \u0442\u043e\u043a\u0435\u043d\u043e\u043c \u0438 \u044e\u0437\u0435\u0440-\u0430\u0433\u0435\u043d\u0442\u043e\u043c:\n### Python:\n```\nfrom vkpymusic import Service\n\nservice = Service.parse_config()\n```\n## Or you can do like this:<br>\u0418\u043b\u0438 \u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0442\u0430\u043a:\n### Python:\n```\nservice = Service(\"<your_token>\", \"<your_client>\")\n```\n\n## Get information about the current user<br>\u041f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043e \u043f\u0435\u0441\u043d\u044f\u0445 \u0442\u0435\u043a\u0443\u0449\u0435\u0433\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f\n### Python:\n```\nuser_songs = service.get_songs_by_userid(5, 10)\n```\n\n## Search for tracks by query<br>\u041f\u043e\u0438\u0441\u043a \u0442\u0440\u0435\u043a\u043e\u0432 \u043f\u043e \u0437\u0430\u043f\u0440\u043e\u0441\u0443\n### Python:\n```\nsongs = service.search_songs_by_text(\"Maroon V\", 5)\n```\n\n## Full example<br>\u041f\u043e\u043b\u043d\u044b\u0439 \u043f\u0440\u0438\u043c\u0435\u0440\n### Python:\n```\nfrom vkpymusic import Service, TokenReceiver\nlogin = input(\" Enter login: \")\npassword = input(\"Enter password: \")\n\ntokenReceiver = TokenReceiver(login, password)\n\nif tokenReceiver.auth():\n tokenReceiver.get_token()\n tokenReceiver.save_to_config()\n\nservice = Service.parse_config()\ntracks = service.search_songs_by_text('idfc tiktok remix')\nService.save_music(tracks[0])\n```\n\n# Documentation<br>\u0414\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f\n### Detailed documentation and usage examples for VKpyMusic can be found on the official project page on GitHub: \n### \u0414\u0435\u0442\u0430\u043b\u044c\u043d\u0430\u044f \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f \u0438 \u043f\u0440\u0438\u043c\u0435\u0440\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0434\u043b\u044f VKpyMusic \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u043d\u0430 \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0439 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435 \u043d\u0430 \u0413\u0438\u0442\u0425\u0430\u0431\u0435: \n## https://github.com/issamansur/vkpymusic\n## https://issamansur.github.io/vkpymusic/\n\n\n# Contributions and Support\n### \u0415\u0441\u043b\u0438 \u0443 \u0432\u0430\u0441 \u0435\u0441\u0442\u044c \u043a\u0430\u043a\u0438\u0435-\u043b\u0438\u0431\u043e \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u043f\u043e \u0443\u043b\u0443\u0447\u0448\u0435\u043d\u0438\u044e VKpyMusic \u0438\u043b\u0438 \u0432\u044b \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0438\u0442\u0435 \u043a\u0430\u043a\u0438\u0435-\u043b\u0438\u0431\u043e \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b, \u043f\u043e\u0436\u0430\u043b\u0443\u0439\u0441\u0442\u0430, \u0441\u043e\u0437\u0434\u0430\u0439\u0442\u0435 \u043d\u043e\u0432\u0443\u044e \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0443 \u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 GitHub. \u041c\u044b \u043f\u0440\u0438\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u0435\u043c \u0432\u0430\u0448\u0438 \u0437\u0430\u043f\u0440\u043e\u0441\u044b \u043d\u0430 \u0438\u0441\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0438 \u0433\u043e\u0442\u043e\u0432\u044b \u043f\u043e\u043c\u043e\u0447\u044c \u0432\u0430\u043c \u0441 \u043b\u044e\u0431\u044b\u043c\u0438 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430\u043c\u0438, \u0441 \u043a\u043e\u0442\u043e\u0440\u044b\u043c\u0438 \u0432\u044b \u0441\u0442\u043e\u043b\u043a\u043d\u0435\u0442\u0435\u0441\u044c.\n### 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.\n\n# License\n### VKpyMusic is distributed under the MIT license. For detailed information about the license, see the LICENSE file.\n\n# Authors\n### VKpyMusic is developed by the @issamansur or/and 'EDEXADE, inc.' development team.\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Python library for VK Audio (API)",
"version": "3.3.3",
"project_urls": {
"Homepage": "https://github.com/issamansur/vkpymusic",
"Repository": "https://github.com/issamansur/vkpymusic"
},
"split_keywords": [
"vk",
" api",
" music",
" downloader",
" python"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "c184562f876eb8e6da156104589963bca5ffefbff5e20bfe4fac8d01bfeac860",
"md5": "b5a61b8a34b32ab738d81e1e2734dd5b",
"sha256": "8998d12b765a3a3c8264f8298e51b99f87e3a174da6d26f54c5130e2de032f13"
},
"downloads": -1,
"filename": "vkpymusic-3.3.3-py3-none-any.whl",
"has_sig": false,
"md5_digest": "b5a61b8a34b32ab738d81e1e2734dd5b",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "<3.12,>=3.8",
"size": 24784,
"upload_time": "2024-11-22T20:56:33",
"upload_time_iso_8601": "2024-11-22T20:56:33.113894Z",
"url": "https://files.pythonhosted.org/packages/c1/84/562f876eb8e6da156104589963bca5ffefbff5e20bfe4fac8d01bfeac860/vkpymusic-3.3.3-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "242c99b4dd2cf4850d7ccba1076adafa3d806d14e79dd3a0e662f650beb669b1",
"md5": "4555479eff3cfe1fa9c8fe14720a0015",
"sha256": "01fc15e576109977d26f7aacea036e8a1052ae0c559590de93af111a6acbf9dc"
},
"downloads": -1,
"filename": "vkpymusic-3.3.3.tar.gz",
"has_sig": false,
"md5_digest": "4555479eff3cfe1fa9c8fe14720a0015",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "<3.12,>=3.8",
"size": 17793,
"upload_time": "2024-11-22T20:56:34",
"upload_time_iso_8601": "2024-11-22T20:56:34.347017Z",
"url": "https://files.pythonhosted.org/packages/24/2c/99b4dd2cf4850d7ccba1076adafa3d806d14e79dd3a0e662f650beb669b1/vkpymusic-3.3.3.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-11-22 20:56:34",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "issamansur",
"github_project": "vkpymusic",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"requirements": [
{
"name": "requests",
"specs": [
[
"==",
"2.32.3"
]
]
},
{
"name": "aiofiles",
"specs": [
[
"==",
"23.2"
]
]
},
{
"name": "httpx",
"specs": [
[
"==",
"0.24"
]
]
}
],
"lcname": "vkpymusic"
}