{"id":16430734,"url":"https://github.com/stereoflo/ispmanager-python-api","last_synced_at":"2025-06-22T07:33:33.177Z","repository":{"id":152862684,"uuid":"119505009","full_name":"StereoFlo/ispmanager-python-api","owner":"StereoFlo","description":"Manage an ISPManager panel with Python","archived":false,"fork":false,"pushed_at":"2018-02-08T13:45:32.000Z","size":16,"stargazers_count":1,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-25T09:46:31.820Z","etag":null,"topics":["api","api-client","api-ispmanager-python","ispmanager","python"],"latest_commit_sha":null,"homepage":null,"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/StereoFlo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2018-01-30T08:21:23.000Z","updated_at":"2024-01-10T17:05:18.000Z","dependencies_parsed_at":null,"dependency_job_id":"6e4112cd-3634-491b-9997-40032b1c0ebc","html_url":"https://github.com/StereoFlo/ispmanager-python-api","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/StereoFlo/ispmanager-python-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StereoFlo%2Fispmanager-python-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StereoFlo%2Fispmanager-python-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StereoFlo%2Fispmanager-python-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StereoFlo%2Fispmanager-python-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/StereoFlo","download_url":"https://codeload.github.com/StereoFlo/ispmanager-python-api/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StereoFlo%2Fispmanager-python-api/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261255849,"owners_count":23131474,"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":["api","api-client","api-ispmanager-python","ispmanager","python"],"created_at":"2024-10-11T08:28:10.442Z","updated_at":"2025-06-22T07:33:28.164Z","avatar_url":"https://github.com/StereoFlo.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ISPManager Python API\n\nsorry, english version is not ready yet\n\nРеализация клиента к API панели ISPManager на языке Python. PHP версию вы можете найти тут https://github.com/StereoFlo/ispmanager-php-api. Суть работы, та же, вы добавляете в isp_manager/func/domain/ свою функцию и работаете с ней\n\n##### Пример вызова приведен в файле app.py:\n\nНеобходимые импорты\n\n```python\n\nfrom isp_manager.credentials import Credentials\nfrom isp_manager.server import Server\nfrom isp_manager import IspManager\nfrom isp_manager.func.domain import Add\n\n\n```\n\nСоздаем объекты сервера и пользователя\nУ конструктора объекта Server могут быть дополнительные параметры: порт и схема работы (https/http)\n\n```python\n\nuser = Credentials('user', 'password')\nserver = Server('delta.hoster.net')\n```\n\nСоздаюм объект функции (в данном случае функция это добавление домена)\n\n```python\n\nfunc = Add()\nfunc.set_additional({\n    'name': 'domain.ru',\n    'ip': '127.0.0.1',\n    'ns': 'dns3.domain.net. dns1.domain.net. dns2.domain.net.',\n    'ns_list': '',\n    'mx': 'mail',\n    'mx_list': '',\n    'elid': '',\n    'sok': 'ok',\n})\n\n```\n\nСоздаем объект класса для работы со всеми данными установленными выше, работаем с ними и получаем результат\n\n```python\n\nisp_manager = IspManager()\nisp_manager.set_server(server)\nisp_manager.set_user(user)\nisp_manager.set_func(func)\nprint(isp_manager.execute())\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstereoflo%2Fispmanager-python-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstereoflo%2Fispmanager-python-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstereoflo%2Fispmanager-python-api/lists"}