cyclonedx_py.utils.conda
Module Contents
Classes
Internal package for unifying Conda package definitions to. |
Functions
|
Return the purl for the specified package. |
|
Return the purl for a pip-installed package in a conda environment. |
|
|
Helper method for parsing a line of output from conda list --explicit into our internal CondaPackage object. |
|
|
Helper method for parsing package_name_version_build_string. |
|
Helper method for parsing build_string. |
- class cyclonedx_py.utils.conda.CondaPackage[source]
Bases:
TypedDictInternal package for unifying Conda package definitions to.
- cyclonedx_py.utils.conda.conda_package_to_purl(pkg: CondaPackage) packageurl.PackageURL[source]
Return the purl for the specified package. See https://github.com/package-url/purl-spec/blob/master/PURL-TYPES.rst#conda
- cyclonedx_py.utils.conda._conda_package_to_pypi_purl(pkg: CondaPackage) packageurl.PackageURL[source]
Return the purl for a pip-installed package in a conda environment. These packages are listed as if from the pseudo-channel “pypi”. See https://github.com/package-url/purl-spec/blob/master/PURL-TYPES.rst#pypi
- cyclonedx_py.utils.conda.parse_conda_json_to_conda_package(conda_json_str: str) CondaPackage | None[source]
- cyclonedx_py.utils.conda.parse_conda_list_str_to_conda_package(conda_list_str: str) CondaPackage | None[source]
Helper method for parsing a line of output from conda list –explicit into our internal CondaPackage object.
- Params:
- conda_list_str:
Line of output from conda list –explicit
- Returns:
Instance of CondaPackage else None.