{ "info": { "author": "neur0hak", "author_email": "xxx9981@gmail.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python" ], "description": "# boklib\n\nusage\n\n from boklib import bok\n\n api_key = 'example' # get an api key in this site: https://ecos.bok.or.kr/jsp/openapi/OpenApiController.jsp?t=main\n lang = '' # 'kr'or 'en'\n state_code = '' # get a state_code in table_list or get a state_code in item_list\n cycle = '' # get a cycle in item_list\n start_date = '' # get a start_date in item_list\n end_date = '' # get a end_date in item_list\n item_code = '' # get a item_code in item_list\n\n bok = bok(api_key, lang)\n result_key_list = bok.key_List()\n result_table_list = bok.table_list()\n result_item_list = bok.item_list(stat_code)\n result_search = bok.search(stat_code, cycle, start_date, end_date, item_code)\n result_meta = bok.meta(meta_search_word) # maybe korean language only - site: https://ecos.bok.or.kr/jsp/use/metadata/MetaData.jsp\n result_word = bok.word(search_word) # maybe korean language only - site: https://ecos.bok.or.kr/jsp/use/metaword/MetaDataWordList.jsp\n\n for result in result_key_list['row']:\n class_name = result['CLASS_NAME']\n keystat_name = result['KEYSTAT_NAME']\n data_value = result['DATA_VALUE']\n cycle = result['CYCLE']\n unit_name = result['UNIT_NAME']\n print('class_name = %s, keystat_name = %s, data_value = %s, cycle = %s, unit_name = %s' % (class_name, keystat_name, data_value, cycle, unit_name))\n\n #\n # --- result example ---\n # {'list_total_count': {}, 'row' : [] }\n #\n # print result_key_list\n # {'list_total_count' : 1, 'row' : [{'CLASS_NAME' : '', 'KEYSTAT_NAME' : '', 'DATA_VALUE' : '', 'CYCLE' : '', 'UNIT_NAME' : ''}]}\n #\n # print result_table_list\n # {'list_total_count': 1, 'row' : [{'P_STAT_CODE' : '', 'STAT_CODE' : '', 'STAT_NAME' : '', 'CYCLE' : '', 'SRCH_YN' : '', 'ORG_NAME' : ''}] }\n #\n # print result_item_list\n # {'list_total_count' : 1, 'row' : [{'STAT_CODE' : '', 'STAT_NAME' : '', 'GRP_CODE' : '', 'GRP_NAME' : '', 'P_ITEM_CODE' : '', 'ITEM_CODE' : '', 'ITEM_NAME' : '', 'CYCLE' : '', 'START_TIME' : '', 'END_TIME' : '', 'DATA_CNT' : ''}]}\n # print result_search\n # {'list_total_count' : 1, 'row' : [{'STAT_CODE' : '', 'STAT_NAME' : '', 'ITEM_CODE1' : '', 'ITEM_CODE2' : '', 'ITEM_CODE3' : '', 'UNIT_NAME' : '', 'TIME' : '', 'DATA_VALUE' : ''}]}\n #\n # print result_meta\n # {'list_total_count': 1, 'row' : [{'LVL' : '', 'P_CONT_CODE' : '', 'CONT_CODE' : '', 'CONT_NAME' : '', 'META_DATA' : ''}] }\n #\n # print result_word\n # {'list_total_count': 1, 'row' : [{'WORD' : '', 'CONTENT' : ''}] }\n #\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/neur0hak/boklib", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "boklib", "package_url": "https://pypi.org/project/boklib/", "platform": "", "project_url": "https://pypi.org/project/boklib/", "project_urls": { "Homepage": "https://github.com/neur0hak/boklib" }, "release_url": "https://pypi.org/project/boklib/1.1/", "requires_dist": [ "requests" ], "requires_python": "", "summary": "parsing a bank of korea api", "version": "1.1" }, "last_serial": 5288379, "releases": { "1.1": [ { "comment_text": "", "digests": { "md5": "3cc40016cabfacf2a61e7dd398322bdb", "sha256": "e2342e3f9e91f75b811fd80a5fb4557d5eae0f6dd43f4532617e9fa37f54d88e" }, "downloads": -1, "filename": "boklib-1.1-py3-none-any.whl", "has_sig": false, "md5_digest": "3cc40016cabfacf2a61e7dd398322bdb", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4110, "upload_time": "2019-05-19T13:58:12", "url": "https://files.pythonhosted.org/packages/6a/cf/df1ad37cca8050e4b274059054d52ff942ac0e6076eb9d055b86a4faf3ae/boklib-1.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "78060d4ef85c6edc8658570607d3fc38", "sha256": "3b411aeb5040210fba1104783e9384c2c69a259992c63fd680fa824309d561ec" }, "downloads": -1, "filename": "boklib-1.1.tar.gz", "has_sig": false, "md5_digest": "78060d4ef85c6edc8658570607d3fc38", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3041, "upload_time": "2019-05-19T13:58:15", "url": "https://files.pythonhosted.org/packages/c9/8d/7b8bff539e22312ef0044af03f3988867b500f9be0f5dbc4bee492630b06/boklib-1.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "3cc40016cabfacf2a61e7dd398322bdb", "sha256": "e2342e3f9e91f75b811fd80a5fb4557d5eae0f6dd43f4532617e9fa37f54d88e" }, "downloads": -1, "filename": "boklib-1.1-py3-none-any.whl", "has_sig": false, "md5_digest": "3cc40016cabfacf2a61e7dd398322bdb", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4110, "upload_time": "2019-05-19T13:58:12", "url": "https://files.pythonhosted.org/packages/6a/cf/df1ad37cca8050e4b274059054d52ff942ac0e6076eb9d055b86a4faf3ae/boklib-1.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "78060d4ef85c6edc8658570607d3fc38", "sha256": "3b411aeb5040210fba1104783e9384c2c69a259992c63fd680fa824309d561ec" }, "downloads": -1, "filename": "boklib-1.1.tar.gz", "has_sig": false, "md5_digest": "78060d4ef85c6edc8658570607d3fc38", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3041, "upload_time": "2019-05-19T13:58:15", "url": "https://files.pythonhosted.org/packages/c9/8d/7b8bff539e22312ef0044af03f3988867b500f9be0f5dbc4bee492630b06/boklib-1.1.tar.gz" } ] }