datalad_next.types.AnnexKey

class datalad_next.types.AnnexKey(name: str, backend: str, size: int | None = None, mtime: int | None = None, chunksize: int | None = None, chunknumber: int | None = None)[source]

Bases: object

Representation of a git-annex key

https://git-annex.branchable.com/internals/key_format/

backend: str
chunknumber: int | None = None
chunksize: int | None = None
classmethod from_str(key: str)[source]

Return an AnnexKey instance from a key string

mtime: int | None = None
name: str
size: int | None = None