chartlyrics-0.1.5
توضیحات
Wrapper for chartlyrics api: http://api.chartlyrics.com
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | chartlyrics-0.1.5 |
| نام | chartlyrics |
| نسخه کتابخانه | 0.1.5 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | matheusfillipe |
| ایمیل نویسنده | matheusfillipeag@gmail.com |
| آدرس صفحه اصلی | https://github.com/matheusfillipe/chartlyrics |
| آدرس اینترنتی | https://pypi.org/project/chartlyrics/ |
| مجوز | MIT |
[](https://circleci.com/gh/matheusfillipe/chartlyrics)
[](https://pypi.org/project/chartlyrics/)
[](https://mangle.ga/irc)
# ChartLyrics API
This is a simple wrapper for: http://api.chartlyrics.com. You can search for songs, artists and get the lyrics.
## Installation
``` sh
pip install chartlyrics
```
## Usage Example
```python
from chartlyrics import ChartLyricsClient
client = ChartLyricsClient()
for song in client.search_text("starts with one"):
if "park" in song.artist.lower():
print(song.artist) # Linking Park
print(song.lyrics) # Starts with one\n One thing I dont know why...
```
You can also use `song.lyrics_object` which will return a `Lyrics` object that you can index strophes and verses on:
```python
lyrics = song.lyrics_object
print(lyrics[0][-1]) # first strophe last verse
```
Check the `tests` for more examples.
## Development
Fork the repo, run:
```sh
poetry install
```
Add features, write tests, run:
```sh
poetry run pytest
```
Create a Pull request.
نیازمندی
| مقدار | نام |
|---|---|
| >=2.28.1,<3.0.0 | requests |
| >=4.9.1,<5.0.0 | lxml |
| >=8.1.3,<9.0.0 | click |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.8,<4.0 | Python |
نحوه نصب
نصب پکیج whl chartlyrics-0.1.5:
pip install chartlyrics-0.1.5.whl
نصب پکیج tar.gz chartlyrics-0.1.5:
pip install chartlyrics-0.1.5.tar.gz