Wrapper for civo api
Project description
Civo
This project is the python API library for using in python projects.
Usage
>>> from civo import Civo >>> civo = Civo('token') >>> ssh_file = open('~/.ssh/id_dsa.pub').read()
>>> # you can filter the result >>> size_id = civo.size.search(filter='name:g2.xsmall')[0]['name'] >>> template = civo.templates.search(filter='code:debian-stretch')[0]['id']
>>> civo.ssh.create(name='default', public_key=ssh_file) >>> civo.instances.create(hostname='text.example.com', size='g2.xsmall', region='lon1', template_id=template, public_ip='true', ssh_key='default')
Installation
pip3 install civo
Requirements
requests
Compatibility
python 3.7
Licence
Mit License
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
civo-1.0.1.tar.gz
(13.7 kB
view hashes)
Built Distribution
civo-1.0.1-py3-none-any.whl
(21.6 kB
view hashes)