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
Release files for civo 1.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| civo-1.0.4.tar.gz | 13.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| civo-1.0.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 35.5 kB
Release files / civo-1.0.4.tar.gz
| Download URL | civo-1.0.4.tar.gz |
|---|---|
| Size | 13.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0ead971f6502fe615a22242eb7433126debe1c60b1466e47b76ca49dd4e1fa16
|
|
BLAKE2b-256 checksum How to use checksums |
e064feb43b38f4365a4777987b7dafab64215512abab3188385b20de2cf07959
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.37.0 CPython/3.8.0
|
Release files / civo-1.0.4-py3-none-any.whl
| Download URL | civo-1.0.4-py3-none-any.whl |
|---|---|
| Size | 21.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c227c06e896dbd1decba6effaa0ecbc8ac8b5751e1e9c10d2e99108c5e4f8bcd
|
|
BLAKE2b-256 checksum How to use checksums |
82473f62c3077b5d18a856b9ccbafe17bfc267bba8f0b843d46e88fcb5409211
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.37.0 CPython/3.8.0
|