class documentation

class PackageMetadata(Protocol): (source)

View In Hierarchy

Undocumented

Method __contains__ Undocumented
Method __getitem__ Undocumented
Method __iter__ Undocumented
Method __len__ Undocumented
Method get_all Return all values associated with a possibly multi-valued key.
Property json A JSON-compatible form of the metadata.
def __contains__(self, item: str) -> bool: (source)

Undocumented

def __getitem__(self, key: str) -> str: (source)

Undocumented

def __iter__(self) -> Iterator[str]: (source)

Undocumented

def __len__(self) -> int: (source)

Undocumented

def get_all(self, name: str, failobj: _T = ...) -> Union[List[Any], _T]: (source)

Return all values associated with a possibly multi-valued key.

@property
json: Dict[str, Union[str, List[str]]] = (source)

A JSON-compatible form of the metadata.