{"id":15008924,"url":"https://github.com/rehmatworks/ploi-python","last_synced_at":"2026-02-16T01:32:33.973Z","repository":{"id":50194911,"uuid":"180803873","full_name":"rehmatworks/ploi-python","owner":"rehmatworks","description":"A Python package (Unofficial one) to interact with Ploi API.","archived":false,"fork":false,"pushed_at":"2022-12-08T04:58:21.000Z","size":14,"stargazers_count":1,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-10T09:44:44.168Z","etag":null,"topics":["ploi","ploi-api","python","python-2","python-3","python2","python3"],"latest_commit_sha":null,"homepage":"https://developers.ploi.io/","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/rehmatworks.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-04-11T13:58:30.000Z","updated_at":"2022-05-17T11:57:15.000Z","dependencies_parsed_at":"2023-01-24T11:15:15.235Z","dependency_job_id":null,"html_url":"https://github.com/rehmatworks/ploi-python","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rehmatworks%2Fploi-python","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rehmatworks%2Fploi-python/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rehmatworks%2Fploi-python/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rehmatworks%2Fploi-python/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rehmatworks","download_url":"https://codeload.github.com/rehmatworks/ploi-python/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247276096,"owners_count":20912287,"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":["ploi","ploi-api","python","python-2","python-3","python2","python3"],"created_at":"2024-09-24T19:21:44.271Z","updated_at":"2025-10-03T13:04:19.423Z","avatar_url":"https://github.com/rehmatworks.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Ploi Python Package\nA Python package to interact with [Ploi API](https://developers.ploi.io/).\n\nPloi is an awesome server management tool that lets you manage an Ubuntu server to host PHP applications with great flexibility. If you want to programatically interact with Ploi using Python, then this package will let you consume their API the easy way.\n\n## Installation\nInstall from PyPi:\n```shell\npip install ploi\n```\nor clone this repo and run:\n```python\npython setup.py install\n```\n### Usage\n```python\nfrom ploi.ploi import Ploi\nApiToken = '#############' # Your Ploi API Token\np = Ploi(ApiToken)\n```\n\n#### List Servers\n```python\np.list_servers()\n```\n\n### Get a Server\n```python\np.get_server(serverId)\n```\n\n### List Sites\n```python\np.list_sites(serverId)\n```\n\n### Create a Site\n```python\ndata = {\n    'root_domain': 'example.com',\n    'web_directory': '/example/', # Slashes are compulsory\n}\np.create_site(serverId, data=data)\n```\n\n### Get a Site\n```python\np.show_site(serverId, siteId)\n```\n\n### Delete a Site\n```python\np.delete_site(serverId, siteId)\n```\n\n### List Databases\n```python\np.list_databases(serverId)\n```\n\n### Create a Database\n```python\ndata = {\n    'name': 'dbname',\n    'user': 'dbuser',\n    'password': 'dbpassword'\n}\np.create_database(serverId, data=data)\n```\n\n### Get a Database\n```python\np.show_database(serverId, databaseId)\n```\n\n### Delete a Database\n```python\np.delete_database(serverId, databaseId)\n```\n\nMore methods will be supported in future versions as this is just a starting point.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frehmatworks%2Fploi-python","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frehmatworks%2Fploi-python","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frehmatworks%2Fploi-python/lists"}