Skip to main content

No project description provided

Project description

Django Kubernetes Backend

A Django model backend that overlays Kubernetes (K8s) resources and Custom Resource Definitions (CRDs), providing an ORM-like interface for interacting with Kubernetes resources. This project aims to integrate Django's model patterns with Kubernetes' API, allowing developers to manage Kubernetes resources using familiar Django model syntax.

Features

  • Kubernetes Integration:

    • Supports both namespace-scoped and cluster-wide Kubernetes resources.
    • Configurable authentication using kubeconfig (from environment, specific file, or in-cluster service account token).
  • Model Design:

    • Uses a metaclass (KubernetesModelBase) to define models for Kubernetes resources, mimicking Django's model patterns.
    • Adds a KubernetesMeta inner class for specifying resource configuration (e.g. resource_type, api_version, kind, namespace, cluster_scoped).
  • Dynamic Field Generation:

    • Automatically discovers and generates Django model fields based on the Kubernetes OpenAPI schema.
    • Maps Kubernetes schema types (e.g. string, integer, array) to Django field types (e.g. CharField, IntegerField, JSONField

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

django_kubernetes_backend-0.1.1.tar.gz (13.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django_kubernetes_backend-0.1.1-py3-none-any.whl (15.8 kB view details)

Uploaded Python 3

File details

Details for the file django_kubernetes_backend-0.1.1.tar.gz.

File metadata

File hashes

Hashes for django_kubernetes_backend-0.1.1.tar.gz
Algorithm Hash digest
SHA256 28987a6579542a8155f44a4374e532afdffb8a5134a52e9be6a02902fdfb0462
MD5 1c5ad31189da79b74f72052d8e961100
BLAKE2b-256 41130c17cedc17b05ea37e0262d463e5ad9e9aee245d32cc024b430d29ab753d

See more details on using hashes here.

File details

Details for the file django_kubernetes_backend-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for django_kubernetes_backend-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 45f5c9d455b5d9fd1928e345f6b40b1630bd609558f8ab5e8e59d732d192304a
MD5 683c5d771f7a57ea402c8df26337d7f8
BLAKE2b-256 be0e3d385f8d24db28143de9f4d498b6bab2a527eefc6b2cffe3d7ed5a15f760

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