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 details)

Uploaded Source

File details

Details for the file staroid-0.1.0.tar.gz.

File metadata

  • Download URL: staroid-0.1.0.tar.gz
  • Upload date:
  • Size: 7.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.8.5

File hashes

Hashes for staroid-0.1.0.tar.gz
Algorithm Hash digest
SHA256 ccbc730dca807e5c25e93007c50d9929c3b18e9c01c0f8820f131ef50b64d720
MD5 1e7f6eba9da16b23600eeae33d9c8f44
BLAKE2b-256 4fc05e3d17348f34a835a3b22eb082b082dff2b7649b3a3bc5805cad1eb226f7

See more details on using hashes here.

Supported by

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