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.0.tar.gz (13.8 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.0-py3-none-any.whl (17.4 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for django_kubernetes_backend-0.1.0.tar.gz
Algorithm Hash digest
SHA256 62805c4246c1abb211d94d507bc2d6758cd3d87c6cf40d274290c5dfb7081d02
MD5 d113d00bac0e7fb2494c60392bb3c456
BLAKE2b-256 ae842b8957f2b1bcf8cb1cf63f84db77ffa9655ef4706962d286a0b80cf60e89

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for django_kubernetes_backend-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 74c6c56bb547223276e72a071f875e1d5b251a8bd1c208aba35c5ee2ca011f13
MD5 70ce4144894222908998cf77694fa1c8
BLAKE2b-256 a770dfa56461390dc7875818ebf15c97b4a73510b07b02e2846d557a42e7cc46

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