instiz
A Python3-only library for iChart K-Pop chart scores.
Installation
pip install instiz
Getting Started
Getting started is easy. The following example is to get the top 10 at the realtime chart of iChart.
from instiz import iChart
ichart = iChart()
top_10 = ichart.realtime_top_10()
Type hinting
If you're using Python 3.7+'s type hinting feature, the type used for the return type of the chart can be imported from the instiz.models module.
from instiz.models import Entry
def get_name(entry: Entry) -> str:
return entry.title
Artist name
It's now possible to get the Korean name and the English name of an artist easily, alongside with the raw artist name provided from iChart's site. Nice title property will always return the English name, unless unavailable. If one of the names are unavailable, the property will return an empty string.
from instiz import iChart
ichart = iChart()
first_place = ichart.get_next_entry()
nice_title = first_place.nice_title # JENNIE - SOLO
raw_artist_name = first_place.artist.raw_name # 제니 (JENNIE)
english_artist_name = first_place.artist.english_name # JENNIE
korean_artist_name = first_place.artist.korean_name # 제니
Contributing
- Fork the repo
- Make your changes
- Write your tests so I don't accidentally remove it when updating
- Run the tests.
- Make a pull request.
TODO
- Document the API
- Weekly chart
Release files for instiz 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| instiz-0.2.1.tar.gz | 4.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| instiz-0.2.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 12.1 kB
Release files / instiz-0.2.1.tar.gz
| Download URL | instiz-0.2.1.tar.gz |
|---|---|
| Size | 4.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7e05fea18b0f26d62181e94f4487fb34b561d3432e046cd1cd445c455a981d49
|
|
BLAKE2b-256 checksum How to use checksums |
d31f625848039622c97a76a0b2af225430e92dd60d97e231474a9809d64f2720
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.1
|
Release files / instiz-0.2.1-py3-none-any.whl
| Download URL | instiz-0.2.1-py3-none-any.whl |
|---|---|
| Size | 7.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
85621f1f055ad17b9b6abdd4931e0f0290d96ecb5718f37c4090847799d9eb4b
|
|
BLAKE2b-256 checksum How to use checksums |
d1add6ca58d5ef415db1c96a96c90e7ebde66e41738ae20d41f1842583eb9911
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.1
|