Skip to content

Commit 81bccbc

Browse files
committed
Update docs for the json property.
1 parent 0c86a02 commit 81bccbc

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

docs/using.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,12 @@ the values are returned unparsed from the distribution metadata::
156156
>>> wheel_metadata['Requires-Python']
157157
'>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*'
158158

159+
``PackageMetadata`` also presents a ``json`` attribute that returns
160+
all the metadata in a JSON-compatible form per PEP 566::
161+
162+
>>> wheel_metadata.json['requires_python']
163+
'>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*'
164+
159165

160166
.. _version:
161167

0 commit comments

Comments
 (0)