colrev.package_manager.doc_registry_manager.PackageDoc

class PackageDoc(package_id)[source]

Bases: object

Methods

get_docs_item

Get the documentation item for the package

get_endpoint_item

Get the endpoint item for the package

has_endpoint

Check if the package has a specific endpoint type

import_package_docs

Import the package documentation

Attributes

repository

package_id

version

license

authors

documentation

package_dir

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,

}

has_endpoint(endpoint_type)[source]

Check if the package has a specific endpoint type

Return type:

bool

import_package_docs()[source]

Import the package documentation

Return type:

None