{"id":19640177,"url":"https://github.com/gearplug/kommo-python","last_synced_at":"2026-06-10T18:31:24.276Z","repository":{"id":218820274,"uuid":"745495047","full_name":"GearPlug/kommo-python","owner":"GearPlug","description":null,"archived":false,"fork":false,"pushed_at":"2024-02-02T17:49:39.000Z","size":11,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-02-26T22:44:37.895Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/GearPlug.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-01-19T13:11:01.000Z","updated_at":"2025-01-05T13:39:31.000Z","dependencies_parsed_at":"2025-01-10T10:54:02.679Z","dependency_job_id":null,"html_url":"https://github.com/GearPlug/kommo-python","commit_stats":null,"previous_names":["gearplug/kommo-python"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/GearPlug/kommo-python","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GearPlug%2Fkommo-python","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GearPlug%2Fkommo-python/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GearPlug%2Fkommo-python/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GearPlug%2Fkommo-python/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GearPlug","download_url":"https://codeload.github.com/GearPlug/kommo-python/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GearPlug%2Fkommo-python/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34165482,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-10T02:00:07.152Z","response_time":89,"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":[],"created_at":"2024-11-11T14:04:56.805Z","updated_at":"2026-06-10T18:31:24.255Z","avatar_url":"https://github.com/GearPlug.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# kommo-python\n![](https://img.shields.io/badge/version-0.1.3-success) ![](https://img.shields.io/badge/Python-3.8%20|%203.9%20|%203.10%20|%203.11-4B8BBE?logo=python\u0026logoColor=white)  \n\n*kommo-python* is an API wrapper for Kommo CRM, written in Python.  \nThis library uses Oauth2 for authentication.\n## Installing\n```\npip install kommo-python\n```\n### Usage\n```python\nfrom kommo.client import Client\nclient = Client(client_id, client_secret, code, domain, redirect_uri)\n```\nTo obtain and set an access token and set it, follow this instructions:\n1. **Get authorization url**\n```python\nurl = client.authorization_url(state=None)\n# This call generates the url necessary to display the pop-up window to perform oauth authentication\n# param state(code) is required for direct request for oauth, for local test isn't necessary\n```\n2. **Get access token**\n```python\naccess_token = client.get_access_token(code, domain)\n# This call generates the oauth validation and get the access token and refresh token.\n# Must send the code and domain generated from get authorization url. \n```\n3. **Refresh access token**\n```python\nrefresh_token = client.refresh_access_token(refresh_token)\n# \"refresh_token\" is the token refresh in response after login with oauth with the above url.\n```\n\n4. **Set token**\n```python\nclient.set_token(access_token)\n# It is necessary to be able to use the library's actions.\n```\n##Actions for get data\n- **Get account info**\n```python\nclient.get_account_info()\n# Returns a json with the account information where the application was configured.\n```\n\n- **Get list of companies**\n```python\nclient.list_companies()\n# Returns a json with the list of companies.\n```\n\n- **Get custom fields for company**\n```python\nclient.get_custom_fields_company()\n# Returns a json with the list of custom fields for company.\n```\n\n- **Get list of contacts**\n```python\nclient.list_contacts()\n# Returns a json with the list of contacts.\n```\n\n- **Get custom fields for contact**\n```python\nclient.get_custom_fields_contacts()\n# Returns a json with the list of custom fields for contact.\n```\n\n- **Get list of leads**\n```python\nclient.list_leads()\n# Returns a json with the list of leads.\n```\n\n- **Get custom fields for lead**\n```python\nclient.get_custom_fields_leads()\n# Returns a json with the list of custom fields for lead.\n```\n\n- **Get list of tasks**\n```python\nclient.list_tasks()\n# Returns a json with the list of tasks.\n```\n\n- **Get custom fields for task**\n```python\nclient.get_custom_fields_tasks()\n# Returns a json with the list of custom fields for tast.\n```\n\n##Actions for send data\n\n- **Create company**\n```python\nclient.create_company(name: str = None, company_name: str = None, \n                      phone: str = None, email: str = None,\n                      custom_fields: list = None)\n# Allows you to create a company in the configured application.\n```\n\n- **Create contact**\n```python\nclient.create_contact(self, name: str = None, first_name: str = None, \n                      last_name: str = None,\n                      custom_fields: list = None)\n# Allows you to create a contact in the configured application.\n```\n\n- **Create lead**\n```python\nclient.create_lead(self, name: str = None, first_name: str = None, \n                   last_name: str = None,\n                   custom_fields: list = None)\n# Allows you to create a lead in the configured application.\n```\n\n- **Create lead**\n```python\nclient.create_task(self, name: str = None, first_name: str = None, \n                   last_name: str = None,\n                   custom_fields: list = None)\n# Allows you to create a task in the configured application.\n```\n\n##Actions for webhook\n\n- **List webhooks**\n```python\nclient.list_webhooks()\n# Allows list webhooks in the configured application.\n```\n\n- **Create webhook**\n```python\nclient.create_webhook(event_type: str = None, url: str = None)\n# Allows create a webhook in the configured application.\n```\n\n- **Delete webhook**\n```python\nclient.delete_webhook(uuid: str = None)\n# Allows delete a webhook in the configured application.\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgearplug%2Fkommo-python","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgearplug%2Fkommo-python","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgearplug%2Fkommo-python/lists"}