{"id":18716326,"url":"https://github.com/killbill/killbill-client-python","last_synced_at":"2025-07-25T04:33:25.654Z","repository":{"id":3629029,"uuid":"4695379","full_name":"killbill/killbill-client-python","owner":"killbill","description":"Python client library for Kill Bill","archived":false,"fork":false,"pushed_at":"2023-02-17T16:50:16.000Z","size":880,"stargazers_count":9,"open_issues_count":5,"forks_count":20,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-06-27T23:19:18.169Z","etag":null,"topics":["billing","killbill","payments","subscriptions"],"latest_commit_sha":null,"homepage":"https://killbill.io","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/killbill.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/CONTRIBUTING.md","funding":".github/FUNDING.yml","license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null},"funding":{"github":["killbill"]}},"created_at":"2012-06-17T22:33:27.000Z","updated_at":"2025-04-15T01:33:21.000Z","dependencies_parsed_at":"2023-02-18T22:01:12.344Z","dependency_job_id":null,"html_url":"https://github.com/killbill/killbill-client-python","commit_stats":{"total_commits":57,"total_committers":5,"mean_commits":11.4,"dds":"0.45614035087719296","last_synced_commit":"dbef1b28ba88faff7cda9a1262347ab9c3672d09"},"previous_names":["killbilling/killbill-client-python"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/killbill/killbill-client-python","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/killbill%2Fkillbill-client-python","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/killbill%2Fkillbill-client-python/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/killbill%2Fkillbill-client-python/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/killbill%2Fkillbill-client-python/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/killbill","download_url":"https://codeload.github.com/killbill/killbill-client-python/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/killbill%2Fkillbill-client-python/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266954631,"owners_count":24011834,"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","status":"online","status_checked_at":"2025-07-25T02:00:09.625Z","response_time":70,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["billing","killbill","payments","subscriptions"],"created_at":"2024-11-07T13:12:19.023Z","updated_at":"2025-07-25T04:33:25.479Z","avatar_url":"https://github.com/killbill.png","language":"Python","funding_links":["https://github.com/sponsors/killbill"],"categories":[],"sub_categories":[],"readme":"# killbill\nKill Bill is an open-source billing and payments platform\n\nThis Python package is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:\n\n- API version: 0.24.0\n- Package version: 0.0.1-SNAPSHOT\n- Build package: org.killbill.billing.codegen.languages.KillbillPythonGenerator\n\n## Requirements.\n\nPython 2.7 and 3.4+\n\n## Installation \u0026 Usage\n### pip install\n\nIf the python package is hosted on Github, you can install directly from Github\n\n```sh\npip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git\n```\n(you may need to run `pip` with root permission: `sudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git`)\n\nThen import the package:\n```python\nimport killbill \n```\n\n### Setuptools\n\nInstall via [Setuptools](http://pypi.python.org/pypi/setuptools).\n\n```sh\npython setup.py install --user\n```\n(or `sudo python setup.py install` to install the package for all users)\n\nThen import the package:\n```python\nimport killbill\n```\n\n## Getting Started\n\nPlease follow the [installation procedure](#installation--usage) and then run the following:\n\n```python\nfrom __future__ import print_function\nimport time\nimport killbill\nfrom killbill.rest import ApiException\nfrom pprint import pprint\n\n# Configure API key authorization: Killbill Api Key\nkillbill.configuration.api_key['X-Killbill-ApiKey'] = 'YOUR_API_KEY'\n# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed\n# killbill.configuration.api_key_prefix['X-Killbill-ApiKey'] = 'Bearer'\n# Configure API key authorization: Killbill Api Secret\nkillbill.configuration.api_key['X-Killbill-ApiSecret'] = 'YOUR_API_KEY'\n# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed\n# killbill.configuration.api_key_prefix['X-Killbill-ApiSecret'] = 'Bearer'\n# Configure HTTP basic authorization: basicAuth\nkillbill.configuration.username = 'YOUR_USERNAME'\nkillbill.configuration.password = 'YOUR_PASSWORD'\n# create an instance of the API class\napi_instance = killbill.AccountApi()\naccount_id = 'account_id_example' # Str | \nbody = killbill.BlockingState() # BlockingState | \ncreated_by = 'x_killbill_created_by_example' # Str | \nrequested_date = '2013-10-20' # Date |  (optional)\nplugin_property = ['plugin_property_example'] # List[Str] |  (optional)\nreason = 'x_killbill_reason_example' # Str |  (optional)\ncomment = 'x_killbill_comment_example' # Str |  (optional)\n\ntry:\n    # Block an account\n    api_response = api_instance.add_account_blocking_state(account_id, body, created_by, requested_date=requested_date, plugin_property=plugin_property, reason=reason, comment=comment)\n    pprint(api_response)\nexcept ApiException as e:\n    print(\"Exception when calling AccountApi-\u003eadd_account_blocking_state: %s\\n\" % e)\n\n```\n\n## Calling custom plugin endpoints\n\n```python\nconfiguration = killbill.Configuration()\nconfiguration.host = 'http://127.0.0.1:8080'\nkb_client = killbill.ApiClient(configuration)\n\ndef request(url, method, params=None, body=None, profiling_data=None):\n    header_params = {}\n    header_params['X-Killbill-CreatedBy'] = 'admin'\n    header_params['X-Killbill-Reason'] = 'for testing'\n    header_params['X-Killbill-Comment'] = 'no comment'\n    header_params['X-Killbill-ApiKey'] = 'bob'\n    header_params['X-Killbill-ApiSecret'] = 'lazar'\n    header_params['X-Killbill-Profiling-Req'] = 'JAXRS'\n    header_params['Content-Type'] = 'application/json'\n    header_params['Authorization'] = 'Basic YWRtaW46cGFzc3dvcmQ='\n\n    body, status_code, headers = kb_client.call_api(url,\n                                                    method,\n                                                    query_params=params,\n                                                    header_params=header_params,\n                                                    body=body,\n                                                    response_type='object')\n\n    if profiling_data is not None and 'X-Killbill-Profiling-Resp' in headers:\n        profiling_header = json.loads(headers['X-Killbill-Profiling-Resp'])\n        jaxrs_profiling_header = profiling_header['rawData'][0]\n\n        key = \"%s:%s\" % (method, url)\n        if not key in profiling_data:\n            profiling_data[key] = []\n\n        profiling_data[key].append(jaxrs_profiling_header['durationUsec'])\n\n    return body\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkillbill%2Fkillbill-client-python","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkillbill%2Fkillbill-client-python","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkillbill%2Fkillbill-client-python/lists"}