KOSIS API
Project description
KOSIS api
Installing
pip install kosis
Using kosis
-
Get API Key from kosis.kr https://kosis.kr/openapi/serviceUse/serviceUseUnityReg_01Detail.jsp
-
Export environment variable KOSIS_API_KEY export KOSIS_API_KEY={your key}
Using ipython's autocompletion for easy navigation
from kosis import Kosis
ks = Kosis()
# press tab after typing "ks.main." to see the top most list.
# You can navigate every statistics data using autocompletion
ks.main.금융
Using dir() to navigate items
from kosis import Kosis
ks = Kosis()
dir(ks.main)
dir(ks.main.금융)
Getting statics data
from kosis import Kosis
ks = Kosis()
ks.main.금융.통화금융통계.통화_및_유동성지표.M2_광의통화_.M2_상품별구성내역_말잔_.M2_상품별_구성내역_말잔_계절조정계열_.data
output
TBL_NM PRD_DE TBL_ID ITM_NM ITM_NM_ENG ITM_ID UNIT_NM ORG_ID UNIT_NM_ENG C1_OBJ_NM C1_OBJ_NM_ENG DT PRD_SE C1 C1_NM C1_NM_ENG
0 M2 상품별 구성내역(말잔 계절조정계열) 202212 DT_101Y001 M2 상품별 구성내역(말잔 계절조정계열) M2 By Type (End of SA) 13103134693999 십억원 301 Bil.Won 계정항목별 ACCOUNT 3750603.4 M 13102134693ACC_ITEM.BBGS00 M2(말잔 계절조정계열) M2(End Of period SA)
1 M2 상품별 구성내역(말잔 계절조정계열) 202301 DT_101Y001 M2 상품별 구성내역(말잔 계절조정계열) M2 By Type (End of SA) 13103134693999 십억원 301 Bil.Won 계정항목별 ACCOUNT 3795354.4 M 13102134693ACC_ITEM.BBGS00 M2(말잔 계절조정계열) M2(End Of period SA)
2 M2 상품별 구성내역(말잔 계절조정계열) 202302 DT_101Y001 M2 상품별 구성내역(말잔 계절조정계열) M2 By Type (End of SA) 13103134693999 십억원 301 Bil.Won 계정항목별 ACCOUNT 3802737.3 M 13102134693ACC_ITEM.BBGS00 M2(말잔 계절조정계열) M2(End Of period SA)
3 M2 상품별 구성내역(말잔 계절조정계열) 202212 DT_101Y001 M2 상품별 구성내역(말잔 계절조정계열) M2 By Type (End of SA) 13103134693999 십억원 301 Bil.Won 계정항목별 ACCOUNT 163052.4 M 13102134693ACC_ITEM.BBGS01 현금통화 Currency in Circulation
4 M2 상품별 구성내역(말잔 계절조정계열) 202301 DT_101Y001 M2 상품별 구성내역(말잔 계절조정계열) M2 By Type (End of SA) 13103134693999 십억원 301 Bil.Won 계정항목별 ACCOUNT 161895.8 M 13102134693ACC_ITEM.BBGS01 현금통화 Currency in Circulation
5 M2 상품별 구성내역(말잔 계절조정계열) 202302 DT_101Y001 M2 상품별 구성내역(말잔 계절조정계열) M2 By Type (End of SA) 13103134693999 십억원 301 Bil.Won 계정항목별 ACCOUNT 163942.1 M 13102134693ACC_ITEM.BBGS01 현금통화 Currency in Circulation
...
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
kosis-0.1.5.tar.gz
(5.2 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
kosis-0.1.5-py3-none-any.whl
(5.2 kB
view details)
File details
Details for the file kosis-0.1.5.tar.gz.
File metadata
- Download URL: kosis-0.1.5.tar.gz
- Upload date:
- Size: 5.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
00d7ef6018e4c0c68117e360fbc2c89a240947d7850064301793697dbadab862
|
|
| MD5 |
0342b48c54f49fac90b2b244285358e6
|
|
| BLAKE2b-256 |
785f0ae2a56a303010198d32356a2c7d7ad2a2ea7d9737b6ca49b7ebf9dd191d
|
File details
Details for the file kosis-0.1.5-py3-none-any.whl.
File metadata
- Download URL: kosis-0.1.5-py3-none-any.whl
- Upload date:
- Size: 5.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
951489498c8e0646f11d3ff9989cc8a2f61144e6317fbe9d00e4d392c90c78f7
|
|
| MD5 |
6131ad7d78f702b0bf3daa61fdd3a2fa
|
|
| BLAKE2b-256 |
d9bea5bf55cc42fe8370fa99b9755640e24af95e050d6ae88c245a4431b5d2d9
|