python-drf-yasg
Port variant v12
Summary Django Swagger/OpenAPI spec generator (3.12)
BROKEN
Package version 1.21.8
Homepage https://github.com/axnsan12/drf-yasg
Keywords python
Maintainer Python Automaton
License Not yet specified
Other variants v13
Ravenports Buildsheet | History
Ravensource Port Directory | History
Last modified 11 NOV 2024, 23:28:05 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'
Configuration Switches (platform-specific settings discarded)
PY312 ON Build using Python 3.12 PY313 OFF Build using Python 3.13
Package Dependencies by Type
Build (only) python312:dev:std
python-pip:single:v12
autoselect-python:single:std
Build and Runtime python312:primary:std
Runtime (only) python-djangorestframework:single:v12
python-Django:single:v12
python-PyYAML:single:v12
python-inflection:single:v12
python-packaging:single:v12
python-pytz:single:v12
python-uritemplate:single:v12
Download groups
main mirror://PYPIWHL/8e/45/141c52a3213329d9f68cadc7daf4dc03e259f2301c87c421a68af174d7a4
Distribution File Information
a410b235e7cc2c0f6b9d4f671e8efe6f2d27cba398fbd16064e16ef814998444 4289546 drf_yasg-1.21.8-py3-none-any.whl
Ports that require python-drf-yasg:v12
python-netbox-app-systems:v12 Application systems plugin for Netbox (3.12)