{"id":21476427,"url":"https://github.com/tniah/python-kongclient","last_synced_at":"2025-07-15T10:32:11.847Z","repository":{"id":42006424,"uuid":"222035381","full_name":"tniah/python-kongclient","owner":"tniah","description":"A Python library for Kong Admin API","archived":false,"fork":false,"pushed_at":"2022-04-19T03:07:58.000Z","size":61,"stargazers_count":4,"open_issues_count":0,"forks_count":9,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-11-16T03:11:52.361Z","etag":null,"topics":["flask","kong","kong-api","kong-api-gateway","python","python3"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tniah.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-11-16T02:27:28.000Z","updated_at":"2024-08-15T03:15:02.000Z","dependencies_parsed_at":"2022-08-12T02:10:27.284Z","dependency_job_id":null,"html_url":"https://github.com/tniah/python-kongclient","commit_stats":null,"previous_names":["haintd/python-kongclient"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tniah%2Fpython-kongclient","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tniah%2Fpython-kongclient/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tniah%2Fpython-kongclient/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tniah%2Fpython-kongclient/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tniah","download_url":"https://codeload.github.com/tniah/python-kongclient/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225908932,"owners_count":17543489,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["flask","kong","kong-api","kong-api-gateway","python","python3"],"created_at":"2024-11-23T11:08:55.723Z","updated_at":"2024-11-23T11:08:56.379Z","avatar_url":"https://github.com/tniah.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Python - Kong Client\n\nThis is a Python library for the Kong admin API.\n\nIt was build around [kong 1.14.x specifications](https://docs.konghq.com/1.4.x/admin-api/)\n\n## Installation ##\n\n### PypI ###\n```sh\npip install python-kongclient\n```\n\n### Manual ###\n1. Clone the repository `git clone git@github.com:haintd/python-kongclient.git`\n2. Enter it `cd python-kongclient`\n3. Install it `python setup.py install`\n\n## Instructions\n\n**Import into your project**\n```sh\nfrom kongclient import KongClient\n```\n\n**Create a kong client**\n```sh\nkong_client = KongClient(kong_url='https://localhost:8444', verify_ssl=True)\n\nkong_client.services.create(name='httpbin', url='https://httpbin.org')\nkong_client.services.add_route(service_id='httpbin', name='route', hosts=['httpbin.org'])\nkong_client.routes.list()\n...\n```\n\n**For Python-Flask**\n```sh\nfrom flask import Flask\nfrom kongclient.flask import KongClient\n\napp = Flask(__name__)\napp.config['KONG_ADMIN_URL'] = 'https://localhost:8444'\napp.config['KONG_ADMIN_VERIFY_SSL'] = True\nkong_client = KongClient(app)\n\n@app.route('/services', methods=['GET'])\ndef get_services():\n   return kong_client.services.list()\n```\n\nFor more details, checkout [kong documentation](https://docs.konghq.com/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftniah%2Fpython-kongclient","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftniah%2Fpython-kongclient","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftniah%2Fpython-kongclient/lists"}