Name | lyrical JSON |
Version |
1.1.1
JSON |
| download |
home_page | None |
Summary | Python package to fetch song lyrics from Genius |
upload_time | 2024-12-20 19:56:17 |
maintainer | None |
docs_url | None |
author | None |
requires_python | >=3.9 |
license | # MIT License Copyright (c) 2024 SnarkyDev Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
keywords |
lyrics
genius
music
songs
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# Lyrical
A Python package to fetch song lyrics from Genius.
## Installation
```bash
pip install lyrical
```
## Info
- **Author:** SnarkyDev
- **Version:** 1.1.1
- **LICENSE:** MIT
- **USE:** Scrapes Genius for lyrics, in an async way
## Usage
```python
import lyrical
import asyncio
import json
url = asyncio.run(lyrical.Lyrics.search("Hello World"))
lyrics = asyncio.run(lyrical.Lyrics.get_lyrics(url))
artist = asyncio.run(lyrical.Lyrics.get_artists(url))
title = asyncio.run(lyrical.Lyrics.get_title(url))
print(f'Lyrics: {lyrics}\nArtists: {artist}\nTitle: {title}')
overall = asyncio.run(lyrical.Lyrics.lyrics("Hello World"))
print(json.loads(overall))
```
### API
```python
import lyrical
import asyncio
lyrics = asyncio.run(lyrical.Lyrics.start_api())
```
Raw data
{
"_id": null,
"home_page": null,
"name": "lyrical",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.9",
"maintainer_email": "SnarkyDev <snarkydev@outlook.com>",
"keywords": "lyrics, genius, music, songs",
"author": null,
"author_email": "SnarkyDev <snarkydev@outlook.com>",
"download_url": "https://files.pythonhosted.org/packages/e2/ff/960f5b92e48bd169ca101b5430a0ebd9af3575f2dce70272cd8bfe28ec80/lyrical-1.1.1.tar.gz",
"platform": null,
"description": "# Lyrical\r\n\r\nA Python package to fetch song lyrics from Genius.\r\n\r\n## Installation\r\n\r\n```bash\r\npip install lyrical\r\n```\r\n\r\n## Info\r\n\r\n- **Author:** SnarkyDev\r\n- **Version:** 1.1.1\r\n- **LICENSE:** MIT\r\n- **USE:** Scrapes Genius for lyrics, in an async way\r\n\r\n## Usage\r\n\r\n```python\r\nimport lyrical\r\nimport asyncio\r\nimport json\r\nurl = asyncio.run(lyrical.Lyrics.search(\"Hello World\"))\r\nlyrics = asyncio.run(lyrical.Lyrics.get_lyrics(url))\r\nartist = asyncio.run(lyrical.Lyrics.get_artists(url))\r\ntitle = asyncio.run(lyrical.Lyrics.get_title(url))\r\nprint(f'Lyrics: {lyrics}\\nArtists: {artist}\\nTitle: {title}')\r\n\r\noverall = asyncio.run(lyrical.Lyrics.lyrics(\"Hello World\"))\r\nprint(json.loads(overall))\r\n```\r\n\r\n### API\r\n\r\n```python\r\nimport lyrical\r\nimport asyncio\r\nlyrics = asyncio.run(lyrical.Lyrics.start_api())\r\n```\r\n",
"bugtrack_url": null,
"license": "# MIT License Copyright (c) 2024 SnarkyDev Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ",
"summary": "Python package to fetch song lyrics from Genius",
"version": "1.1.1",
"project_urls": {
"Bug Reports": "https://github.com/SnarkyDeveloper/Lyrical/issues",
"Homepage": "https://github.com/SnarkyDeveloper/Lyrical",
"Source": "https://github.com/SnarkyDeveloper/Lyrical"
},
"split_keywords": [
"lyrics",
" genius",
" music",
" songs"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "40eece8963d2fd150b907278200bdf4e67d9452c32d3fd6a9a8716d9530a41f6",
"md5": "1e042907358ba1eac4f65d2c57ba05b9",
"sha256": "d2d02b8952ca0a13eab19d39d769884339bcfc83a68dd1a8d4de87d0233662b0"
},
"downloads": -1,
"filename": "lyrical-1.1.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "1e042907358ba1eac4f65d2c57ba05b9",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.9",
"size": 4778,
"upload_time": "2024-12-20T19:56:14",
"upload_time_iso_8601": "2024-12-20T19:56:14.255009Z",
"url": "https://files.pythonhosted.org/packages/40/ee/ce8963d2fd150b907278200bdf4e67d9452c32d3fd6a9a8716d9530a41f6/lyrical-1.1.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "e2ff960f5b92e48bd169ca101b5430a0ebd9af3575f2dce70272cd8bfe28ec80",
"md5": "6263f07bb0a6ca4dda64497a13f40a31",
"sha256": "9cd4aa1634ee987b8733ca9820dba1ecc631fc837d0bd68995f562294fe8a850"
},
"downloads": -1,
"filename": "lyrical-1.1.1.tar.gz",
"has_sig": false,
"md5_digest": "6263f07bb0a6ca4dda64497a13f40a31",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.9",
"size": 4075,
"upload_time": "2024-12-20T19:56:17",
"upload_time_iso_8601": "2024-12-20T19:56:17.812929Z",
"url": "https://files.pythonhosted.org/packages/e2/ff/960f5b92e48bd169ca101b5430a0ebd9af3575f2dce70272cd8bfe28ec80/lyrical-1.1.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-12-20 19:56:17",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "SnarkyDeveloper",
"github_project": "Lyrical",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "lyrical"
}