Skip to content

Collection

BaseCollection

Bases: BaseModel

A data model representing a collection item in the list view.

ATTRIBUTE DESCRIPTION
id

The unique identifier of the collection item.

TYPE: int

user

The user who owns this collection item.

TYPE: User

issue

The issue associated with this collection item.

TYPE: GenericIssue

quantity

Number of copies owned.

TYPE: int

book_format

Format of the comic (print, digital, or both).

TYPE: BookFormat

grade

Comic book grade (CGC scale).

TYPE: Grade | None

grading_company

Professional grading company.

TYPE: GradingCompany | None

purchase_date

Date when the issue was purchased.

TYPE: date | None

is_read

Whether the issue has been read.

TYPE: bool | None

read_dates

List of read date entries for this issue.

TYPE: Annotated[list[ReadDate], Field(default_factory=list)]

read_count

Number of times this issue has been read.

TYPE: int

rating

Star rating (1-5) for this issue.

TYPE: Rating | None

modified

The date and time when the collection item was last modified.

TYPE: datetime

BookFormat

Bases: str, Enum

Enumeration of book formats.

ATTRIBUTE DESCRIPTION
PRINT

Physical printed comic book

DIGITAL

Digital/electronic comic book

BOTH

Both print and digital formats

Collection

Bases: BaseCollection

A data model representing a collection item in detailed view.

ATTRIBUTE DESCRIPTION
purchase_price

Price paid for this issue.

TYPE: Decimal | None

purchase_store

Store or vendor where purchased.

TYPE: str | None

storage_location

Physical location where the collection is stored.

TYPE: str | None

notes

Additional notes about this collection item.

TYPE: str | None

date_read

Date and time when the issue was last read.

TYPE: datetime | None

resource_url

URL of the collection resource.

TYPE: HttpUrl

created_on

The date and time when the collection was created.

TYPE: datetime

CollectionFormatStat

Bases: BaseModel

A data model representing statistics for a specific book format.

ATTRIBUTE DESCRIPTION
book_format

Format of the comic (print, digital, or both).

TYPE: BookFormat | None

count

Number of items in this format.

TYPE: int | None

CollectionStats

Bases: BaseModel

A data model representing statistics about a user's collection.

ATTRIBUTE DESCRIPTION
total_items

Total number of collection items.

TYPE: int | None

total_quantity

Total quantity of all items.

TYPE: int | None

total_value

Total value of the collection.

TYPE: str | None

read_count

Number of items that have been read.

TYPE: int | None

unread_count

Number of items that have not been read.

TYPE: int | None

by_format

Statistics broken down by book format.

TYPE: Annotated[list[CollectionFormatStat], Field(default_factory=list)]

Grade

Bases: float, Enum

Enumeration of comic book grades using the CGC scale.

ATTRIBUTE DESCRIPTION
GEM_MINT

10.0 (Gem Mint)

MINT

9.9 (Mint)

NM_M

9.8 (Near Mint/Mint)

NM_PLUS

9.6 (Near Mint+)

NM

9.4 (Near Mint)

NM_MINUS

9.2 (Near Mint-)

VF_NM

9.0 (Very Fine/Near Mint)

VF_PLUS

8.5 (Very Fine+)

VF

8.0 (Very Fine)

VF_MINUS

7.5 (Very Fine-)

FN_VF

7.0 (Fine/Very Fine)

FN_PLUS

6.5 (Fine+)

FN

6.0 (Fine)

FN_MINUS

5.5 (Fine-)

VG_FN

5.0 (Very Good/Fine)

VG_PLUS

4.5 (Very Good+)

VG

4.0 (Very Good)

VG_MINUS

3.5 (Very Good-)

GD_VG

3.0 (Good/Very Good)

GD_PLUS

2.5 (Good+)

GD

2.0 (Good)

GD_MINUS

1.8 (Good-)

FR_GD

1.5 (Fair/Good)

FR

1.0 (Fair)

PR

0.5 (Poor)

GradingCompany

Bases: str, Enum

Enumeration of professional grading companies.

ATTRIBUTE DESCRIPTION
CGC

Certified Guaranty Company

CBCS

Comic Book Certification Service

PGX

Professional Grading Experts

Rating

Bases: int, Enum

Enumeration of star ratings for comic books.

ATTRIBUTE DESCRIPTION
ONE

1 star

TWO

2 stars

THREE

3 stars

FOUR

4 stars

FIVE

5 stars

ReadDate

Bases: BaseModel

A data model representing a read date entry.

ATTRIBUTE DESCRIPTION
id

The unique identifier of the read date entry.

TYPE: int

read_date

Date and time when the issue was read.

TYPE: datetime

created_on

The date and time when the read date entry was created.

TYPE: datetime