Ravenports generated: 10 Feb 2024 22:55
[ravenports.git] / bucket_BD / python-drf-yasg
1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
2
3 NAMEBASE=               python-drf-yasg
4 VERSION=                1.21.7
5 KEYWORDS=               python
6 VARIANTS=               v11 v12
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]
11
12 DOWNLOAD_GROUPS=        main
13 SITES[main]=            PYPIWHL/26/a5/9fedcd955821ec3b4d26b8a723081eb0f400b7f0bc51f1f49136648423ff
14 DISTFILE[1]=            drf_yasg-1.21.7-py3-none-any.whl:main
15 DF_INDEX=               1
16 SPKGS[v11]=             single
17 SPKGS[v12]=             single
18
19 OPTIONS_AVAILABLE=      PY311 PY312
20 OPTIONS_STANDARD=       none
21 VOPTS[v11]=             PY311=ON PY312=OFF
22 VOPTS[v12]=             PY311=OFF PY312=ON
23
24 DISTNAME=               drf_yasg-1.21.7.dist-info
25
26 GENERATED=              yes
27
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
36
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
45
46 [FILE:1061:descriptions/desc.single]
47    :alt: GitHub Workflow Status
48
49    :alt: Codecov
50
51    :alt: PyPI
52
53    :alt: ReadTheDocs
54
55    :alt: Heroku deploy button
56
57 .. |nbsp| unicode:: 0xA0
58    :trim:
59
60 drf-extra-fields
61 =================
62
63 Integration with `drf-extra-fields
64 <https://github.com/Hipo/drf-extra-fields>`_ has a problem with Base64
65 fields.
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.
69
70 .. code:: python
71
72   class PDFBase64FileField(Base64FileField):
73       ALLOWED_TYPES = ['pdf']
74
75       class Meta:
76           swagger_schema_fields = {
77               'type': 'string',
78               'title': 'File Content',
79               'description': 'Content of the file base64 encoded',
80               'read_only': False  # <-- FIX
81           }
82
83       def get_file_extension(self, filename, decoded_file):
84           try:
85               PyPDF2.PdfFileReader(io.BytesIO(decoded_file))
86           except PyPDF2.utils.PdfReadError as e:
87               logger.warning(e)
88           else:
89               return 'pdf'
90
91
92 [FILE:111:distinfo]
93 f85642072c35e684356475781b7ecf5d218fff2c6185c040664dd49f0a4be181      4289125 drf_yasg-1.21.7-py3-none-any.whl
94