Requirementstxt

The following metadata fields can be extracted from a requirements file.
These fields are defined in the Requirements specification, currently at version 25.2, and are mapped according to the CodeMeta crosswalk for requirements files.

Software metadata category SOMEF metadata JSON path REQUIREMENTS.TXT metadata file field
requirements - value requirements[i].result.value (1)
requirements - name requirements[i].result.name (1)
requirements - version requirements[i].result.version (1)
runtime_platform - value runtime_platform[i].result.value if Python (1)
runtime_platform - name runtime_platform[i].result.name "Python"

(1)
- Example: docstring_parser==0.7 - Result:

value : docstring_parser==0.7
name : docstring_parser=
version : 0.7

(2) - Always "Python" and version if exists. - Example: python= ">=3.11"