Skip to main content

Polymorphic serializers without models

Project description

DRF-polymorphic

Version:

2.1.1

Source:

https://github.com/maykinmedia/drf-polymorphic

Keywords:

django, rest, polymorphic

Run CI Coverage status Code linting black Documentation Status

python-versions django-versions pypi-version

Polymorphic support for DRF without Django models

Overview

Polymorphism happens when a resource takes a certain shape depending on the type of the resource. Usually they have a common base type. The exact type/shape is not statically known, but depends on the run-time values.

Unlike django-rest-polymorphic this implementation doesn’t require the usage of django-polymorphic model classes and can be used even without django models.

The implementations also includes the extension for DRF spectacular schema generation.

See the documentation for getting started and usage examples.

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

drf_polymorphic-2.1.1.tar.gz (9.8 kB view details)

Uploaded Source

Built Distribution

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

drf_polymorphic-2.1.1-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

File details

Details for the file drf_polymorphic-2.1.1.tar.gz.

File metadata

  • Download URL: drf_polymorphic-2.1.1.tar.gz
  • Upload date:
  • Size: 9.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for drf_polymorphic-2.1.1.tar.gz
Algorithm Hash digest
SHA256 ace57de8c4a930d07e535b20f2e7fa495e0b9fd2500eb8d5a96fcf9bb73effe8
MD5 64038f7b4de297d906761fc0eaa28296
BLAKE2b-256 dacb9dc9da39a0cc9c078b219c190df98f2e32300e2ab72138a1013a76271d86

See more details on using hashes here.

File details

Details for the file drf_polymorphic-2.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for drf_polymorphic-2.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 cf81ad22d26f4b01f146f731e9d2705952ec469cb3499dd9c83c6cd5bbe539c4
MD5 abb4771d3459de31f22b811f30083c7b
BLAKE2b-256 d026f566b271bd12a83cdd87a186eef883b2cd5c7fe73c97409dfe42fcd1b866

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