Skip to main content

Get k8s version from github

Project description

pyk8sver returns the latest version of kubernetes

Requirements

TBD

Setup

  • If you want to run the test cases, do this extra step
pip install -r requirements-dev.txt
  • Install the package:
python setup.py develop
  • (Optional) Run all tests:
$ paver test_all
======================== 112 passed, 2 xfailed in 2.01 seconds
 ___  _   ___ ___ ___ ___
| _ \/_\ / __/ __| __|   \
|  _/ _ \\__ \__ \ _|| |) |
|_|/_/ \_\___/___/___|___/

Example

from pyk8sver import app
o = app.Kubernetes('your-github-access-token')
releases = o.fetch_releases()
print("Latest is {0}".format(releases[0])) # GitRelease(title="v1.13.2")

Project details


Release history Release notifications | RSS feed

This version

1.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for pyk8sver, version 1.0
Filename, size File type Python version Upload date Hashes
Filename, size pyk8sver-1.0.tar.gz (14.8 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page