python-drf-yasg
Port variant v13
Summary Django Swagger/OpenAPI spec generator (3.13)
Package version 1.21.10
Homepage https://github.com/axnsan12/drf-yasg
Keywords python
Maintainer Python Automaton
License Not yet specified
Other variants v12
Ravenports Buildsheet | History
Ravensource Port Directory | History
Last modified 22 MAR 2025, 15:13:13 UTC
Port created 16 APR 2018, 13:51:05 UTC
Subpackage Descriptions
single :alt: GitHub Workflow Status :alt: Codecov :alt: PyPI :alt: Gitter :alt: ReadTheDocs :alt: Heroku deploy button .. |nbsp| unicode:: 0xA0 :trim: drf-extra-fields ================= Integration with `drf-extra-fields `_ has a problem with Base64 fields. The drf-yasg will generate Base64 file or image fields as Readonly and not required. Here is a workaround code for display the Base64 fields correctly. .. code:: python class PDFBase64FileField(Base64FileField): ALLOWED_TYPES = ['pdf'] class Meta: swagger_schema_fields = { 'type': 'string', 'title': 'File Content', 'description': 'Content of the file base64 encoded', 'read_only': False # <-- FIX } def get_file_extension(self, filename, decoded_file): try: PyPDF2.PdfFileReader(io.BytesIO(decoded_file)) except PyPDF2.utils.PdfReadError as e: logger.warning(e) else: return 'pdf' ************ Contributing ************ This repository adheres to semantic versioning standards. For more information on semantic versioning visit [SemVer]. To keep our process simple we merge pull requests into the master branch we use git tags for releases. We use labels to mark which issues are intended for each version. For example: .. figure:: ./docs/images/flow.png :width: 70% :figwidth: image :alt: Git flow :align: center Labels ====== - New issues without a version are given a triage label. - Issues are labeled bug, enhancement or question to describe their content - Once given a version, an issue will either have an assignee or be given a help wanted label - A question that hasn't been answered will be given an unanswered label
Configuration Switches (platform-specific settings discarded)
PY312 OFF Build using Python 3.12 PY313 ON Build using Python 3.13
Package Dependencies by Type
Build (only) python313:dev:std
python-pip:single:v13
autoselect-python:single:std
Build and Runtime python313:primary:std
Runtime (only) python-djangorestframework:single:v13
python-Django:single:v13
python-PyYAML:single:v13
python-inflection:single:v13
python-packaging:single:v13
python-pytz:single:v13
python-uritemplate:single:v13
Download groups
main mirror://PYPIWHL/ac/39/c833f775973944b378d76aeea2269e5d3d3d6528b08f1a4d774cb4cbdb3f
Distribution File Information
4d832e108dfe38e365101c36123576b498487d33bf27d57d6a37efb4cc773438 4290377 python-src/drf_yasg-1.21.10-py3-none-any.whl
Ports that require python-drf-yasg:v13
python-netbox-app-systems:v13 Application systems plugin for Netbox (3.13)