Volumes#
bookshelf.Volume #
Volume(client: BookshelfClient, cache: ContentCache, detail: models.VolumeDetailResponse, *, book_ttl: float)
Bases: _VolumeBase
A volume indexed by version, resolving each into a published Book.
versions property #
Every version this volume has published, oldest first.
latest property #
The newest published version, or None for a volume that has published nothing.
editions #
The published editions of one version, oldest first.
book #
Resolve one published Book, defaulting to the newest version and edition.
__getitem__ #
Resolve the newest edition of one version, the same as book(version).
bookshelf.AsyncVolume #
AsyncVolume(client: BookshelfClient, cache: ContentCache, detail: models.VolumeDetailResponse, *, book_ttl: float)
Bases: _VolumeBase
The asynchronous twin of Volume.
versions property #
Every version this volume has published, oldest first.
latest property #
The newest published version, or None for a volume that has published nothing.
editions #
The published editions of one version, oldest first.
book async #
Resolve one published Book, defaulting to the newest version and edition.