1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
3 NAMEBASE= python-drf-yasg
7 SDESC[v11]= Django Swagger/OpenAPI spec generator (3.11)
8 SDESC[v12]= Django Swagger/OpenAPI spec generator (3.12)
9 HOMEPAGE= https://github.com/axnsan12/drf-yasg
10 CONTACT= Python_Automaton[python@ironwolf.systems]
13 SITES[main]= PYPIWHL/26/a5/9fedcd955821ec3b4d26b8a723081eb0f400b7f0bc51f1f49136648423ff
14 DISTFILE[1]= drf_yasg-1.21.7-py3-none-any.whl:main
19 OPTIONS_AVAILABLE= PY311 PY312
20 OPTIONS_STANDARD= none
21 VOPTS[v11]= PY311=ON PY312=OFF
22 VOPTS[v12]= PY311=OFF PY312=ON
24 DISTNAME= drf_yasg-1.21.7.dist-info
28 [PY311].RUN_DEPENDS_ON= python-djangorestframework:single:v11
29 python-Django:single:v11
30 python-PyYAML:single:v11
31 python-inflection:single:v11
32 python-packaging:single:v11
33 python-pytz:single:v11
34 python-uritemplate:single:v11
35 [PY311].USES_ON= python:v11,wheel
37 [PY312].RUN_DEPENDS_ON= python-djangorestframework:single:v12
38 python-Django:single:v12
39 python-PyYAML:single:v12
40 python-inflection:single:v12
41 python-packaging:single:v12
42 python-pytz:single:v12
43 python-uritemplate:single:v12
44 [PY312].USES_ON= python:v12,wheel
46 [FILE:1061:descriptions/desc.single]
47 :alt: GitHub Workflow Status
55 :alt: Heroku deploy button
57 .. |nbsp| unicode:: 0xA0
63 Integration with `drf-extra-fields
64 <https://github.com/Hipo/drf-extra-fields>`_ has a problem with Base64
66 The drf-yasg will generate Base64 file or image fields as Readonly and not
67 required. Here is a workaround code
68 for display the Base64 fields correctly.
72 class PDFBase64FileField(Base64FileField):
73 ALLOWED_TYPES = ['pdf']
76 swagger_schema_fields = {
78 'title': 'File Content',
79 'description': 'Content of the file base64 encoded',
80 'read_only': False # <-- FIX
83 def get_file_extension(self, filename, decoded_file):
85 PyPDF2.PdfFileReader(io.BytesIO(decoded_file))
86 except PyPDF2.utils.PdfReadError as e:
93 f85642072c35e684356475781b7ecf5d218fff2c6185c040664dd49f0a4be181 4289125 drf_yasg-1.21.7-py3-none-any.whl