Skip to main content

Python client library for Staroid cloud platform

Project description

staroid-python

Staroid python client library

Install

pip install staroid

Quickstart

from staroid import Staroid

star = Staroid()

# Create a ske kubernetes cluster
my_cluster = star.cluster().create("my cluster", "gcp us-west1")

# Launch a project 
ns = star.namespace(my_cluster).create("my_app", "GITHUB/staroids/namespace:master")

# stop instance
ns = star.namespace(my_cluster).stop("my_app")

# restart instance
ns = star.namespace(my_cluster).start("my_app")

# delete instance
ns = star.namespace(my_cluster).delete("my_app")

Configuration

Environment variables

Env variable optional description
STAROID_ACCESS_TOKEN false Access token generated from here
STAROID_ACCOUNT true Account to use. e.g. GITHUB/my_github_login

Config file

Altanatively, you can create ~/.staroid/config.yaml file like below.

access_token: <your access token> # access token from https://staroid.com/settings/accesstokens
account: <account> # optional. e.g. "GITHUB/my_github_login"

When both config file and environment variables exist, environment variable will take precedence.

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

staroid-0.1.0.tar.gz (7.4 kB view hashes)

Uploaded Source

Supported by

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