Skip to main content

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.

Metadata

Release files for civo 1.0.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for civo 1.0.8
File Size Uploaded Provenance
civo-1.0.8.tar.gz 16.3 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for civo 1.0.8
File Interpreter ABI Platform
civo-1.0.8-py3-none-any.whl Python 3 none any Details

Total release size: 41.3 kB

Release files / civo-1.0.8.tar.gz

Download URL civo-1.0.8.tar.gz
Size 16.3 kB
Tags Source
SHA-256 checksum
How to use checksums
0f23bfae1342d0382a77c383c0a78fab9697b592aa96431eb59fd07eeb06f28b
BLAKE2b-256 checksum
How to use checksums
b8ad6aea1b52ee390a20fe4e0aa8727bba0976875eca7901d5f39f0a9f45ce69
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.9.1

Release files / civo-1.0.8-py3-none-any.whl

Download URL civo-1.0.8-py3-none-any.whl
Size 25.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b50948b48b9f4572ae8b6758a3c6b8630c3961f636d6518de498bb4e40226f05
BLAKE2b-256 checksum
How to use checksums
f840b030f162117a1626755303d62c39637b962c3002445554e47ba41a49bf65
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.9.1

Security for civo 1.0.8

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page