- ## What is zhlyr?
- **A python library aimed at music enthusiasts, providing tools for managing and discovering music, fetching song lyrics, and utilizing machine learning algorithms to predict the name of a song from a short audio snippet.**
- ## Code Area :
<details>
<summary>
<i>⏬Install Zhlyr</i>
</summary>
```python3
💲pip install zhlyr
```
---
</details>
<details>
<summary>
<i>🎵 Recognize track</i>
</summary>
<br>Recognize a track based on a file</br>
```python3
# Get full track json response object info
import asynico
from zhlyr import Reconize
data = '/root/user/dir/simple.mp3'
async def get_info():
reco = await Reconize(data)
print(reco.json())
loop = asynico.new_event_loop()
loop.run_until_complete(get_info)
# You can get respnose info as string response
reco = Reconize(data)
print(reco.text)
```
---
</details>
<details>
<summary>
<i>🔍🎼 Get the lyrics of the track </i>
</summary>
<br>
Get lyrics from title of the track
`</br>`
```python3
from zhlyr import ZhLyr
lyrics = ZhLyr.GetByTitle(title='save your trears',srt=false)
# :GetByTitle: `title`: str : title of the track to get trrack from it.
# :GetByTitle: `srt`: bool : if `true` he will return time as `srt` format.
# :GetByTitle: return json object
for time , lyric in lyrics.items():
print(f'time {time} >>> lyric : {lyric}')
```
<br>
Get lyrics from details of track
`</br>`
```python3
lyrics = ZhLyr.GetByDetails(title='save your trears',artist='the weeknd',duration='3:35',srt=false)
# :GetByDetails: `title`: str : title of the track to get trrack from it.
# :GetByDetails: `artist`: str : artist of the track to get lyrics from it.
# :GetByDetails: `duration` : Optional[str]=None : duration of the track to get lyrics from it.
# :GetByDetails: `srt`: bool : if `true` he will return time as `srt` format.
# :GetByDetails: return json object
for time , lyric in lyrics.items():
print(f'time {time} >>> lyric : {lyric}')
```
---
</details>
<details>
<summary>
<i>ℹ️ How to use data serialization </i>
</summary>
<br>
Serialized data from response.
`</br>`
```python3
from zhlyr import Serializer
data = your_json_data
serialize = Serializer(data)
print(serialize)
```
<br>
Get vlue from key with serialized data.
`</br>`
```python3
data = {'key1':'hello world!'}
serialize = Serializer(data)
print(serialize.key1)
```
---
</details>
## My Accounts
- [GitHub](https://github.com/Gaoc3/)[`<img src="https://cdn-icons-png.flaticon.com/512/25/25231.png" alt="GitHub" width="20" height="20">`](https://github.com/)
- [Instagram](https://www.instagram.com/mtsky.sensei/)[`<img src="https://cdn-icons-png.flaticon.com/512/2111/2111463.png" alt="Instagram" width="20" height="20">`](https://www.instagram.com/)
- [Telegram](https://nar4nar.t.me)[`<img src="https://cdn-icons-png.flaticon.com/512/2111/2111646.png" alt="Telegram" width="20" height="20">`](https://web.telegram.org/)
---
Raw data
{
"_id": null,
"home_page": "https://gaoc3.github.io/zhlyr/",
"name": "zhlyr",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.9",
"maintainer_email": null,
"keywords": "lyrics, music, shazam, serialize, serializer, recognize",
"author": "Mtsky",
"author_email": "secon2636@gmail.com",
"download_url": null,
"platform": null,
"description": "- ## What is zhlyr?\n- **A python library aimed at music enthusiasts, providing tools for managing and discovering music, fetching song lyrics, and utilizing machine learning algorithms to predict the name of a song from a short audio snippet.**\n- ## Code Area :\n\n\n <details> \n <summary>\n <i>\u23ecInstall Zhlyr</i>\n </summary>\n\n ```python3\n \ud83d\udcb2pip install zhlyr\n ```\n\n ---\n\n </details>\n\n <details>\n <summary>\n <i>\ud83c\udfb5 Recognize track</i>\n </summary>\n <br>Recognize a track based on a file</br>\n\n ```python3\n # Get full track json response object info\n\n import asynico\n from zhlyr import Reconize\n data = '/root/user/dir/simple.mp3'\n async def get_info():\n reco = await Reconize(data)\n print(reco.json())\n loop = asynico.new_event_loop()\n loop.run_until_complete(get_info)\n\n # You can get respnose info as string response \n reco = Reconize(data)\n print(reco.text)\n ```\n\n ---\n\n </details>\n\n <details>\n <summary>\n <i>\ud83d\udd0d\ud83c\udfbc Get the lyrics of the track </i>\n </summary>\n <br>\n\n Get lyrics from title of the track\n `</br>`\n\n ```python3\n from zhlyr import ZhLyr\n lyrics = ZhLyr.GetByTitle(title='save your trears',srt=false)\n # :GetByTitle: `title`: str : title of the track to get trrack from it.\n # :GetByTitle: `srt`: bool : if `true` he will return time as `srt` format.\n # :GetByTitle: return json object\n\n for time , lyric in lyrics.items():\n print(f'time {time} >>> lyric : {lyric}')\n ```\n\n <br>\n\n Get lyrics from details of track\n `</br>`\n\n ```python3\n lyrics = ZhLyr.GetByDetails(title='save your trears',artist='the weeknd',duration='3:35',srt=false)\n # :GetByDetails: `title`: str : title of the track to get trrack from it.\n # :GetByDetails: `artist`: str : artist of the track to get lyrics from it.\n # :GetByDetails: `duration` : Optional[str]=None : duration of the track to get lyrics from it.\n # :GetByDetails: `srt`: bool : if `true` he will return time as `srt` format.\n # :GetByDetails: return json object\n\n for time , lyric in lyrics.items():\n print(f'time {time} >>> lyric : {lyric}')\n ```\n\n ---\n\n </details>\n\n <details>\n\n <summary>\n <i>\u2139\ufe0f How to use data serialization </i>\n </summary>\n <br>\n\n Serialized data from response.\n `</br>`\n\n ```python3\n from zhlyr import Serializer\n data = your_json_data\n serialize = Serializer(data)\n print(serialize)\n ```\n\n <br>\n\n Get vlue from key with serialized data.\n `</br>`\n\n ```python3\n data = {'key1':'hello world!'}\n serialize = Serializer(data)\n print(serialize.key1)\n ```\n\n ---\n\n </details>\n\n## My Accounts\n\n- [GitHub](https://github.com/Gaoc3/)[`<img src=\"https://cdn-icons-png.flaticon.com/512/25/25231.png\" alt=\"GitHub\" width=\"20\" height=\"20\">`](https://github.com/)\n- [Instagram](https://www.instagram.com/mtsky.sensei/)[`<img src=\"https://cdn-icons-png.flaticon.com/512/2111/2111463.png\" alt=\"Instagram\" width=\"20\" height=\"20\">`](https://www.instagram.com/)\n- [Telegram](https://nar4nar.t.me)[`<img src=\"https://cdn-icons-png.flaticon.com/512/2111/2111646.png\" alt=\"Telegram\" width=\"20\" height=\"20\">`](https://web.telegram.org/)\n\n---\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Python library for music handling",
"version": "5.0",
"project_urls": {
"Homepage": "https://gaoc3.github.io/zhlyr/"
},
"split_keywords": [
"lyrics",
" music",
" shazam",
" serialize",
" serializer",
" recognize"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "676c575498f85c54dc89c26ff69ff23c846929dc4536d13e153a47ca6106b330",
"md5": "548bc9595f0f306551f6a6ff8f4fae25",
"sha256": "a3398947178fcb5021d28f111d2b445be913a1357dd4c53968f87a45b781dc58"
},
"downloads": -1,
"filename": "zhlyr-5.0-cp312-cp312-macosx_10_9_x86_64.whl",
"has_sig": false,
"md5_digest": "548bc9595f0f306551f6a6ff8f4fae25",
"packagetype": "bdist_wheel",
"python_version": "cp312",
"requires_python": ">=3.9",
"size": 270494,
"upload_time": "2024-05-21T14:26:24",
"upload_time_iso_8601": "2024-05-21T14:26:24.823285Z",
"url": "https://files.pythonhosted.org/packages/67/6c/575498f85c54dc89c26ff69ff23c846929dc4536d13e153a47ca6106b330/zhlyr-5.0-cp312-cp312-macosx_10_9_x86_64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "e65815b65e6196a74685db1e04e2e8a83b911a961cb90cc5c29ef1e60eb3fe3b",
"md5": "294305d521e983c29d449b72cad84498",
"sha256": "63bfb571634d86d7a9677040ea0f4b7da9311edef53b89f32c631ccf277fb264"
},
"downloads": -1,
"filename": "zhlyr-5.0-cp312-cp312-manylinux1_x86_64.whl",
"has_sig": false,
"md5_digest": "294305d521e983c29d449b72cad84498",
"packagetype": "bdist_wheel",
"python_version": "cp312",
"requires_python": ">=3.9",
"size": 270494,
"upload_time": "2024-05-21T14:26:28",
"upload_time_iso_8601": "2024-05-21T14:26:28.013656Z",
"url": "https://files.pythonhosted.org/packages/e6/58/15b65e6196a74685db1e04e2e8a83b911a961cb90cc5c29ef1e60eb3fe3b/zhlyr-5.0-cp312-cp312-manylinux1_x86_64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "bc5091cd510fb9a168e29c98b48246a190fb768eac6405fd0160e241dea34a40",
"md5": "8677fc98b3b6422471825984762146c1",
"sha256": "29489b486b3232b6a4f6464902641ac6861acdf9fec5a43046a7a0506339f8ad"
},
"downloads": -1,
"filename": "zhlyr-5.0-cp312-cp312-manylinux2014_x86_64.whl",
"has_sig": false,
"md5_digest": "8677fc98b3b6422471825984762146c1",
"packagetype": "bdist_wheel",
"python_version": "cp312",
"requires_python": ">=3.9",
"size": 270497,
"upload_time": "2024-05-21T14:26:31",
"upload_time_iso_8601": "2024-05-21T14:26:31.144919Z",
"url": "https://files.pythonhosted.org/packages/bc/50/91cd510fb9a168e29c98b48246a190fb768eac6405fd0160e241dea34a40/zhlyr-5.0-cp312-cp312-manylinux2014_x86_64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "925004c6255db34a43bceffa7cb0bcb3f36f6a9fea05fc25c125c78d1fcd0793",
"md5": "a6f6d9be6b2f5bc719a31e21cfa3c6c1",
"sha256": "86a1f9d3f125d43c6aa6c19eaf4bd58ef1e4a5fcbe72b535b10224855447fe92"
},
"downloads": -1,
"filename": "zhlyr-5.0-cp312-cp312-win32.whl",
"has_sig": false,
"md5_digest": "a6f6d9be6b2f5bc719a31e21cfa3c6c1",
"packagetype": "bdist_wheel",
"python_version": "cp312",
"requires_python": ">=3.9",
"size": 270479,
"upload_time": "2024-05-21T14:26:33",
"upload_time_iso_8601": "2024-05-21T14:26:33.830497Z",
"url": "https://files.pythonhosted.org/packages/92/50/04c6255db34a43bceffa7cb0bcb3f36f6a9fea05fc25c125c78d1fcd0793/zhlyr-5.0-cp312-cp312-win32.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "3ec3966dfdc2d2bc9dfe69a503f2034ac7fa016b2502e7be20371b4486735550",
"md5": "d32dd09aefdef921df4e4a3ad0d2921d",
"sha256": "c90ddd76f1dac032c2ec59be4985c1cbb700f80f317b3f6ccdd110827c83ffed"
},
"downloads": -1,
"filename": "zhlyr-5.0-cp312-cp312-win_amd64.whl",
"has_sig": false,
"md5_digest": "d32dd09aefdef921df4e4a3ad0d2921d",
"packagetype": "bdist_wheel",
"python_version": "cp312",
"requires_python": ">=3.9",
"size": 270485,
"upload_time": "2024-05-21T14:26:35",
"upload_time_iso_8601": "2024-05-21T14:26:35.758591Z",
"url": "https://files.pythonhosted.org/packages/3e/c3/966dfdc2d2bc9dfe69a503f2034ac7fa016b2502e7be20371b4486735550/zhlyr-5.0-cp312-cp312-win_amd64.whl",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-05-21 14:26:24",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "zhlyr"
}