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.4.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.4-py3-none-any.whl
(5.2 kB
view details)
File details
Details for the file kosis-0.1.4.tar.gz.
File metadata
- Download URL: kosis-0.1.4.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 |
534abbb9050c3ec64146aa977b0052d682592a8d19cacbf380f42415ed4183e6
|
|
| MD5 |
61f4185d94f43aed1e3516eca499f7ff
|
|
| BLAKE2b-256 |
2971c93e359f862ebe6b7e41a1c37a7fa6f4ba0e2ea9af2bfc6c089385e2ecc5
|
File details
Details for the file kosis-0.1.4-py3-none-any.whl.
File metadata
- Download URL: kosis-0.1.4-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 |
4706e0112073fb9f233be1e24e3f38e8f9c93813730cf2cc9671b757a1859653
|
|
| MD5 |
23f371473f8460b0ebd413d870eebfd5
|
|
| BLAKE2b-256 |
8486918fa92621fecafee6777b2ac1cba09a14f7384662c773f18fc1621dfe31
|