File: modules.rst

package info (click to toggle)
python-pykube-ng 22.9.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 424 kB
  • sloc: python: 2,336; makefile: 44
file content (18 lines) | stat: -rw-r--r-- 546 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
API Modules
===========

Pykube exports its main classes on the package level, so you can do:

.. code-block:: python

    from pykube import KubeConfig, HTTPClient, Pod

* :class:`KubeConfig <pykube.config.KubeConfig>` is the main configuration class to load ``~/.kube/config`` or from in-cluster service account
* :class:`HTTPClient <pykube.http.HTTPClient>` represents the Kubernetes API client
* Kubernetes resource kinds (:class:`Pod <pykube.objects.Pod>`, etc) are defined in :mod:`pykube.objects`


.. toctree::
   :maxdepth: 4

   pykube