python-drf-yasg
Port variant py39
Summary Django Swagger/OpenAPI spec generator (3.9)
Package version 1.21.4
Homepage https://github.com/axnsan12/drf-yasg
Keywords python
Maintainer Python Automaton
License Not yet specified
Other variants py310
Ravenports Buildsheet | History
Ravensource Port Directory | History
Last modified 01 OCT 2022, 18:02:47 UTC
Port created 16 APR 2018, 13:51:05 UTC
Subpackage Descriptions
single :alt: GitHub Workflow Status :alt: Codecov :alt: PyPI :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)
PY310 OFF Build using Python 3.10 PY39 ON Build using Python 3.9
Package Dependencies by Type
Build (only) python-pip:single:py39
autoselect-python:single:standard
Build and Runtime python39:single:standard
Runtime (only) python-coreapi:single:py39
python-coreschema:single:py39
python-djangorestframework:single:py39
python-Django:single:py39
python-ruamel.yaml:single:py39
python-inflection:single:py39
python-packaging:single:py39
python-pytz:single:py39
python-uritemplate:single:py39
Download groups
main mirror://PYPIWHL/e7/e9/4b061294c3e9ac4e865ac11fc54f929496cbba112798e85bc1fb0693ce93
Distribution File Information
4a156d195fdccc51b40a227955588d982ca43c2e327927c7713bf967f5589913 6446282 drf_yasg-1.21.4-py3-none-any.whl
Ports that require python-drf-yasg:py39
No other ports depend on this one.