Skip to main content

txkube

PyPI Package CI status Coverage

What is this?

txkube is a Twisted-based client library for interacting with Kubernetes.

Usage Sample

from __future__ import print_function
from twisted.internet.task import react

from txkube import network_kubernetes_from_context

@react
def main(reactor):
    k8s = network_kubernetes_from_context(reactor)
    d = k8s.versioned_client()
    d.addCallback(
        lambda client: client.list(client.model.v1.Namespace)
    )
    d.addCallback(print)
    return d

Installing

To install the latest version of txkube using pip:

$ pip install txkube

For additional development dependencies, install the dev extra:

$ pip install txkube[dev]

Testing

txkube uses pyunit-style tests. After installing the development dependencies, you can run the test suite with trial:

$ pip install txkube[dev]
$ trial txkube

txkube also includes integration tests. It is not recommended that you run these against anything but a dedicated testing Kubernetes cluster. Minikube is an easy way to obtain such a thing. Once running:

$ pip install txkube[dev]
$ TXKUBE_INTEGRATION_CONTEXT=minikube trial txkube

This will run the full test suite which includes the integration tests. It will interact with (and make destructive changes to) the identified Kubernetes cluster.

License

txkube is open source software released under the MIT License. See the LICENSE file for more details.

Metadata

Release files for txkube 0.3.0

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

Source distribution (sdist)

Source distribution for txkube 0.3.0
File Size Uploaded
txkube-0.3.0.tar.gz 143.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for txkube 0.3.0
File Interpreter ABI Platform
txkube-0.3.0-py2-none-any.whl Python 2 none any Details

Total release size: 302.1 kB

Release files / txkube-0.3.0.tar.gz

Download URL txkube-0.3.0.tar.gz
Size 143.2 kB
Tags Source
SHA-256 checksum
How to use checksums
53ebcd25ee3894fb663c0bf029effc17e4b26ca6270c42257bb62ef54dab5d2d
BLAKE2b-256 checksum
How to use checksums
8c8703fa22c525297213ba9db2fd862f8ba20d69387164364096f59247de3a46
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/2.7.14

Release files / txkube-0.3.0-py2-none-any.whl

Download URL txkube-0.3.0-py2-none-any.whl
Size 158.8 kB
Tags Python 2
SHA-256 checksum
How to use checksums
1a3d1f53f653c7893239be7d893bfd6c9678328c9b55d39ca78c2c6ad7c77e0d
BLAKE2b-256 checksum
How to use checksums
9b5eabd4eb92d052d159c4261490a11facd038a7b9d9064aaa8ca2646e321280
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/2.7.14

Release history Release notifications | RSS feed

This release

0.3.0 This release

2 release files

0.2.0

2 release files

0.1.0

2 release files

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