colrev.package_manager.doc_registry_manager.PackageDoc¶
- class PackageDoc(package_id)[source]¶
Bases:
object
Methods
Get the documentation item for the package
Get the endpoint item for the package
Check if the package has a specific endpoint type
Import the package documentation
Attributes
repository
package_id
version
license
authors
documentation
package_dir
monorepo
package_metadata
description
dev_status
endpoints
search_types
docs_package_readme_path
docs_rst_path
- get_docs_item()[source]¶
Get the documentation item for the package
- Return type:
dict
Format: {
“identifier”: package_id, “short_description”: short_description, “path”: docs_rst_path,
}
- get_endpoint_item(endpoint_type)[source]¶
Get the endpoint item for the package
- Return type:
dict
Format: {
“package_endpoint_identifier”: package_id, “status”: status, “short_description”: docs_short_description, “search_types”: search_types,
}