colrev.package_manager.package.Package

class Package(package_identifier)[source]

Bases: object

A Python package for CoLRev

Methods

add_to_type_identifier_endpoint_dict

Add the package to the type_identifier_endpoint_dict dict

get_endpoint

Get the endpoint for a package type

get_endpoint_class

Get the endpoint class for a package type

has_endpoint

Check if the package has a specific endpoint type

add_to_type_identifier_endpoint_dict(type_identifier_endpoint_dict)[source]

Add the package to the type_identifier_endpoint_dict dict

Return type:

None

get_endpoint(endpoint_type)[source]

Get the endpoint for a package type

Return type:

str

get_endpoint_class(package_type)[source]

Get the endpoint class for a package type

Return type:

Any

has_endpoint(endpoint_type)[source]

Check if the package has a specific endpoint type

Return type:

bool