Skip to main content

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.

Metadata

Release files for drf-polymorphic 2.1.1

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

Source distribution (sdist)

Source distribution for drf-polymorphic 2.1.1
File Size Uploaded Provenance
drf_polymorphic-2.1.1.tar.gz 9.8 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for drf-polymorphic 2.1.1
File Interpreter ABI Platform
drf_polymorphic-2.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 17.1 kB

Release files / drf_polymorphic-2.1.1.tar.gz

Download URL drf_polymorphic-2.1.1.tar.gz
Size 9.8 kB
Tags Source
SHA-256 checksum
How to use checksums
ace57de8c4a930d07e535b20f2e7fa495e0b9fd2500eb8d5a96fcf9bb73effe8
BLAKE2b-256 checksum
How to use checksums
dacb9dc9da39a0cc9c078b219c190df98f2e32300e2ab72138a1013a76271d86
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.9

Release files / drf_polymorphic-2.1.1-py3-none-any.whl

Download URL drf_polymorphic-2.1.1-py3-none-any.whl
Size 7.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cf81ad22d26f4b01f146f731e9d2705952ec469cb3499dd9c83c6cd5bbe539c4
BLAKE2b-256 checksum
How to use checksums
d026f566b271bd12a83cdd87a186eef883b2cd5c7fe73c97409dfe42fcd1b866
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.9

Security for drf-polymorphic 2.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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