{ "info": { "author": "mark(margurt)", "author_email": "dc7303@gmail.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3" ], "description": "# Easy Codef\n[CODEF API](https://codef.io)\ub97c \ud1b5\ud574 \ud14c\uc2a4\ud2b8 \ubc0f \uac1c\ubc1c\ud560 \ub54c \uac1c\ubc1c\uc790\uac00 \uc778\ucf54\ub529, \uc554\ud638\ud654 \ub4f1 API \uc694\uccad\uc5d0 \ud544\uc694\ud55c \uc804\ucc98\ub9ac \uc791\uc5c5\uc744\n\ucd5c\uc18c\ud654\ud558\ub294 \uac83, \uadf8\ub9ac\uace0 \ub204\uad6c\ub098 \uc27d\uac8c \uac1c\ubc1c\ud560 \uc218 \uc788\ub294 \uac83\uc744 \uc9c0\ud5a5\ud569\ub2c8\ub2e4.\n\n\ub54c\ubb38\uc5d0 API \uc694\uccad\uc5d0 \ud544\uc694\ud55c \uc804\ucc98\ub9ac \uacfc\uc815\uc744 \uad6c\ud604\ud588\uc2b5\ub2c8\ub2e4.\n\nEasy Codef\ub97c \ud1b5\ud574 \ub204\uad6c\ub098 \uc27d\uac8c CODEF API\ub97c \uc0ac\uc6a9\ud560 \uc218 \uc788\uae30\ub97c \ubc14\ub78d\ub2c8\ub2e4.\n\n### Usage Guide\n1. API \uc0ac\uc6a9\uc744 \uc704\ud55c CODEF \uacc4\uc815\uc774 \ud544\uc694\ud569\ub2c8\ub2e4.\n2. CODEF API\uc5d0 \uc0ac\uc6a9\ub418\ub294 \uc694\uccad URL, \ud30c\ub9ac\ubbf8\ud130, \ucf54\ub4dc, \uad6c\ub3d9\ubc29\uc2dd \ub4f1 CODEF API\uc5d0 \ub300\ud55c \uc790\uc138\ud55c \uc815\ubcf4\ub294 [CODEF API Dev Guide](https://developer.codef.io)\ub97c \ucc38\uace0\ud574\uc8fc\uc138\uc694.\n3. exam \ud3f4\ub354\uc5d0 Easy Codef \uc0ac\uc6a9 \uc608\uc81c(CODEF Develop \ubc84\uc804 \uae30\uc900)\uac00 \uc788\uc2b5\ub2c8\ub2e4.\n\n\n### Python Version\npython 3.x\ub97c \uad8c\uc7a5\ud569\ub2c8\ub2e4.\n\n### Setup\n```bash\n$ pip install easycodef\n```\n\n### Example\n\uc608\uc81c \ucf54\ub4dc\ub294 [exam/exam.py](https://github.com/dc7303/easy-codef-py/blob/master/exam/exam.py)\ub97c \uae30\ubc18\uc73c\ub85c \uc791\uc131\ub418\uc5c8\uc2b5\ub2c8\ub2e4.\n\neasycodef \uc778\uc2a4\ud134\uc2a4 \uc0dd\uc131 \ubc0f CODEF \uc0ac\uc6a9\uc5d0 \ud544\uc694\ud55c access_token\uc744 \uc0dd\uc131\ud569\ub2c8\ub2e4. \n\uc774\ub54c client_id\uc640 client_secret\uc740 CODEF \uacc4\uc815 \uad00\ub9ac\uc5d0\uc11c **\ud0a4\uad00\ub9ac**\uc5d0\uc11c \ud655\uc778\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.\n```python\nfrom easycodef import EasyCodef\n\napi = EasyCodef()\n\naccess_token = api.account.gen_access_token(client_id='', client_secret='')\n```\nAPI \uc0ac\uc6a9\uc744 \uc704\ud55c \uc5d4\ub4dc \uc720\uc800\uc758 \uacc4\uc815 \uad00\ub828 \uc694\uccad\uc5d0 \ud544\uc694\ud55c request body \ub370\uc774\ud130\ub97c \uc0dd\uc131\ud569\ub2c8\ub2e4.\n\n\uc694\uccad\ubcc4 \ud544\uc694\ud55c \ub370\uc774\ud130 \uc815\ubcf4 \ub610\ub294 \uc751\ub2f5 \uc815\ubcf4\ub294 [CODEF Dev Guide](https://developer.codef.io/docs/cert/account/create)\uc5d0\uc11c \ud655\uc778\ud558\uc138\uc694.\n\ngen_account_info\uc758 \ud30c\ub77c\ubbf8\ud130 \uc815\ubcf4\ub294 [\uc5ec\uae30](https://github.com/dc7303/easy-codef-py/blob/master/easycodef/_codefaccount.py#L40)\uc5d0\uc11c\n\ud655\uc778\ud558\uc138\uc694. \uc544\ub798 \uc608\uc81c \ucf54\ub4dc\ub294 \uad6d\ubbfc\uc740\ud589(\uac1c\uc778) connected_id \uc0dd\uc131 \uc608\uc81c\uc785\ub2c8\ub2e4.\n```python\naccount_list = list()\naccout_info = api.account.gen_account_info(business_type='BK',\n organization_code='0004',\n password='',\n public_key='',\n der_file='\ud30c\uc77c \uacbd\ub85c \ub610\ub294 bytes',\n key_file='\ud30c\uc77c \uacbd\ub85c \ub610\ub294 bytes')\naccout_info.append(accout_info)\n\nbody = api.account.gen_account_req_body(account_list=account_list)\n```\neasycodef\uc5d0\uc11c \ubaa8\ub4e0 API \uc694\uccad\uc740 [req_api](https://github.com/dc7303/easy-codef-py/blob/master/easycodef/easycodef.py#L15)\ub97c \uc0ac\uc6a9\ud569\ub2c8\ub2e4.\n```python\ncodef_account_create_url = 'https://api.codef.io/v1/account/create'\n\nresponse_data, response_status_code = api.req_api(codef_account_create_url, access_token, body)\n```\n\uc0dd\uc131\ub41c connected id\ub97c \ud3ec\ud568\ud558\uc5ec \ub370\uc774\ud130 \uc870\ud68c \uc5c5\ubb34\ub97c \uc0ac\uc6a9\ud558\uae30 \uc704\ud55c body \uac12\uc744 \ub9cc\ub4e0 \ud6c4 req_url\ub85c \uc694\uccad\ud569\ub2c8\ub2e4.\n\n```python\nrequest_body = {\n 'connectedId': response_data['data']['connectedId'],\n # ...parameters\n}\napi_url = 'https://development.codef.io/v1/kr/bank/p/account/account-list'\n\nbank_data, status = api.req_api(api_url, access_token, request_body)\n```\n\n### License\n[LICENSE](https://github.com/dc7303/easy-codef-py/blob/master/LICENSE)\n\n### Author\n[Mark(margurt)](https://github.com/dc7303)\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/dc7303/easy-codef-py.git", "keywords": "easy-codef,codef,codef-api,codef-py,codef-python", "license": "", "maintainer": "", "maintainer_email": "", "name": "easycodef", "package_url": "https://pypi.org/project/easycodef/", "platform": "", "project_url": "https://pypi.org/project/easycodef/", "project_urls": { "Homepage": "https://github.com/dc7303/easy-codef-py.git" }, "release_url": "https://pypi.org/project/easycodef/0.1.1/", "requires_dist": [ "astroid (==2.1.0)", "autopep8 (==1.4.3)", "certifi (==2019.6.16)", "chardet (==3.0.4)", "colorama (==0.4.1)", "idna (==2.8)", "isort (==4.3.4)", "lazy-object-proxy (==1.3.1)", "mccabe (==0.6.1)", "Naked (==0.1.31)", "pycodestyle (==2.5.0)", "pycryptodome (==3.9.0)", "pylint (==2.2.2)", "PyYAML (==5.1.2)", "requests (==2.22.0)", "shellescape (==3.4.1)", "six (==1.12.0)", "urllib3 (==1.25.3)", "wincertstore (==0.2)", "wrapt (==1.11.1)" ], "requires_python": ">=3", "summary": "Easily develop codef api", "version": "0.1.1" }, "last_serial": 5835886, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "c4b21b26eae01ce5af4ec4170de03e8b", "sha256": "1d8b3c75b0f11c25d8bcf9452e338260d80f75a649da4b3bbf39745b7ebb61b9" }, "downloads": -1, "filename": "easycodef-0.1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "c4b21b26eae01ce5af4ec4170de03e8b", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3", "size": 8705, "upload_time": "2019-09-16T12:00:50", "url": "https://files.pythonhosted.org/packages/1c/fb/9754c8dd2a97841a4713f5ae7c0959380120dad1c91804fa8b6785c8ab66/easycodef-0.1.0-py3-none-any.whl" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "c73192ebeb768058fe6210acf99f970a", "sha256": "8bb8b4360d3f87c9887d417866c245bbc8a7a8d498190d96c034827e5abe0981" }, "downloads": -1, "filename": "easycodef-0.1.1-py3-none-any.whl", "has_sig": false, "md5_digest": "c73192ebeb768058fe6210acf99f970a", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3", "size": 8705, "upload_time": "2019-09-16T12:26:49", "url": "https://files.pythonhosted.org/packages/e8/a5/542830f575d522ad685e3aa9649a0959af782ab5b659e4853cda603b9b3b/easycodef-0.1.1-py3-none-any.whl" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "c73192ebeb768058fe6210acf99f970a", "sha256": "8bb8b4360d3f87c9887d417866c245bbc8a7a8d498190d96c034827e5abe0981" }, "downloads": -1, "filename": "easycodef-0.1.1-py3-none-any.whl", "has_sig": false, "md5_digest": "c73192ebeb768058fe6210acf99f970a", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3", "size": 8705, "upload_time": "2019-09-16T12:26:49", "url": "https://files.pythonhosted.org/packages/e8/a5/542830f575d522ad685e3aa9649a0959af782ab5b659e4853cda603b9b3b/easycodef-0.1.1-py3-none-any.whl" } ] }