Civo 1.0.8 | Coderz Repository

civo 1.0.8

Last updated:

0 purchases

civo 1.0.8 Image
civo 1.0.8 Images

Free

Languages

Categories

Add to Cart

Description:

civo 1.0.8

Civo
This project is the python API library for using in python projects.

Usage
>>> from civo import Civo
>>> from os.path import expanduser

>>> civo = Civo('token')
>>> home = expanduser("~/.ssh/")
>>> ssh_file = open('{}id_dsa.pub'.format(home)).read()

>>> # you can filter the result
>>> size_id = civo.size.search(filter_by='name:g2.xsmall')[0]['name']
>>> template = civo.templates.search(filter_by='code:debian-stretch')[0]['id']

>>> civo.ssh.create(name='default', public_key=ssh_file)
>>> ssh_id = civo.ssh.search(filter_by='name:default')[0]['id']
>>> civo.instances.create(hostname='text.example.com', size=size_id,
region='lon1', template_id=template,
public_ip='true', ssh_key=ssh_id)



Installation
pip3 install civo

Requirements
requests



Compatibility
python 3.7


Licence
Mit License


Authors
civo was written by Alejandro JNM.

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product: (if this is empty don't purchase this product)

Customer Reviews

There are no reviews.