{"id":15297459,"url":"https://github.com/civo/client-python","last_synced_at":"2025-04-13T22:43:06.592Z","repository":{"id":35542627,"uuid":"198636692","full_name":"civo/client-python","owner":"civo","description":"Python package to interact with Civo's API","archived":false,"fork":false,"pushed_at":"2024-04-13T18:30:40.000Z","size":157,"stargazers_count":11,"open_issues_count":1,"forks_count":9,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-30T07:02:02.750Z","etag":null,"topics":["civo","civo-api","cloud","python","python-3"],"latest_commit_sha":null,"homepage":"https://www.civo.com/","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/civo.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-07-24T13:01:40.000Z","updated_at":"2025-03-26T12:22:23.000Z","dependencies_parsed_at":"2024-04-19T09:15:47.506Z","dependency_job_id":null,"html_url":"https://github.com/civo/client-python","commit_stats":{"total_commits":52,"total_committers":4,"mean_commits":13.0,"dds":0.07692307692307687,"last_synced_commit":"ac449128e3f57a3a64023e6ed2cf7201d4c96c4b"},"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/civo%2Fclient-python","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/civo%2Fclient-python/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/civo%2Fclient-python/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/civo%2Fclient-python/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/civo","download_url":"https://codeload.github.com/civo/client-python/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248794566,"owners_count":21162613,"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":["civo","civo-api","cloud","python","python-3"],"created_at":"2024-09-30T19:17:44.573Z","updated_at":"2025-04-13T22:43:06.546Z","avatar_url":"https://github.com/civo.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"![](logo.png)\n\n# Civo python API Library\n\nThis project is the python API library for using in python projects.\n\n```sh\npip3 install civo\n```\n\n## API Library\n\nTo use the library in your own python projects you can just add it to the requirements.txt:\n\n```python\ncivo\n```\n\nInstall the package:\n\n```sh\npip3 install civo\n```\n\nYou need to define `CIVO_TOKEN` in the environment or when you create a instance of `civo` you can pass the token as param, \nalso you can change the api endpoint adding to the environment `CIVO_API` by default we use `api.civo.com`\n\nRegions:\n- *CIVO only supports IaaS in its **SVG1** region*\n- The API will default to the NYC1 region, override it with the region option when you create an instance of `Civo`\n\nUsage:\n\n```python\nfrom civo import Civo\nfrom os.path import expanduser\n\ncivo = Civo('token', region='LON1')\nhome = expanduser(\"~/.ssh/\")\nssh_file = open('{}id_dsa.pub'.format(home)).read()\n\n# you can filter the result\nsize_id = civo.size.search(filter_by='name:g2.xsmall')[0]['name']\ntemplate = civo.templates.search(filter_by='code:debian-stretch')[0]['id']\n\ncivo.ssh.create(name='default', public_key=ssh_file)\nssh_id = civo.ssh.search(filter_by='name:default')[0]['id']\ncivo.instances.create(hostname='text.example.com', size=size_id, template_id=template, public_ip='true', ssh_key=ssh_id)\n```\n\n## Create Kubernetes\n\nCreate a new Kubernetes Cluster in the NYC1 DC\n\n```python\nfrom civo import Civo\n\ncivo = Civo('token', region='NYC1')\ncivo.kubernetes.create(name='my_cluster', num_nodes=2)\n```\n\nThe API library consists of a handful of classes that implement the Civo API. There is full documentation on the API available at https://www.civo.com/api.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcivo%2Fclient-python","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcivo%2Fclient-python","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcivo%2Fclient-python/lists"}