Skip to main content

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

Authors

civo was written by Alejandro JNM.

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.4.tar.gz (13.8 kB view details)

Uploaded Source

Built Distribution

civo-1.0.4-py3-none-any.whl (21.7 kB view details)

Uploaded Python 3

File details

Details for the file civo-1.0.4.tar.gz.

File metadata

  • Download URL: civo-1.0.4.tar.gz
  • Upload date:
  • Size: 13.8 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for civo-1.0.4.tar.gz
Algorithm Hash digest
SHA256 0ead971f6502fe615a22242eb7433126debe1c60b1466e47b76ca49dd4e1fa16
MD5 a815b72604e834dd9ff8f48a9966c8ec
BLAKE2b-256 e064feb43b38f4365a4777987b7dafab64215512abab3188385b20de2cf07959

See more details on using hashes here.

File details

Details for the file civo-1.0.4-py3-none-any.whl.

File metadata

  • Download URL: civo-1.0.4-py3-none-any.whl
  • Upload date:
  • Size: 21.7 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for civo-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 c227c06e896dbd1decba6effaa0ecbc8ac8b5751e1e9c10d2e99108c5e4f8bcd
MD5 ffb7c0e76da9cd6f450679b55e620fc8
BLAKE2b-256 82473f62c3077b5d18a856b9ccbafe17bfc267bba8f0b843d46e88fcb5409211

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page