Grand Comics Database
GrandComicsDatabase
Class with functionality to request GCD API endpoints.
| PARAMETER | DESCRIPTION |
|---|---|
email
|
The user's GCD email address, which is used for authentication.
TYPE:
|
password
|
The user's GCD password, which is used for authentication.
TYPE:
|
cache
|
SQLiteCache to use if set.
TYPE:
|
base_url
|
Root URL of the GCD API.
TYPE:
|
user_agent
|
Value sent in the
TYPE:
|
timeout
|
Set how long requests will wait for a response (in seconds).
TYPE:
|
limiter
|
Set a custom limiter, used for testing.
TYPE:
|
Source code in grayven/grand_comics_database.py
| Python | |
|---|---|
58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 | |
Functions
get_issue
Request an Issue using its id.
| PARAMETER | DESCRIPTION |
|---|---|
issue_id
|
The Issue id.
TYPE:
|
| RETURNS | DESCRIPTION |
|---|---|
Issue
|
A Issue object. |
| RAISES | DESCRIPTION |
|---|---|
ServiceError
|
If the API response is invalid or validation fails. |
AuthenticationError
|
If credentials are invalid. |
RateLimitError
|
If the API rate limit is exceeded. |
Source code in grayven/grand_comics_database.py
| Python | |
|---|---|
147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 | |
get_publisher
Request a Publisher using its id.
| PARAMETER | DESCRIPTION |
|---|---|
publisher_id
|
The Publisher id.
TYPE:
|
| RETURNS | DESCRIPTION |
|---|---|
Publisher
|
A Publisher object. |
| RAISES | DESCRIPTION |
|---|---|
ServiceError
|
If the API response is invalid or validation fails. |
AuthenticationError
|
If credentials are invalid. |
RateLimitError
|
If the API rate limit is exceeded. |
Source code in grayven/grand_comics_database.py
| Python | |
|---|---|
213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 | |
get_series
Request a Series using its id.
| PARAMETER | DESCRIPTION |
|---|---|
series_id
|
The Series id.
TYPE:
|
| RETURNS | DESCRIPTION |
|---|---|
Series
|
A Series object. |
| RAISES | DESCRIPTION |
|---|---|
ServiceError
|
If the API response is invalid or validation fails. |
AuthenticationError
|
If credentials are invalid. |
RateLimitError
|
If the API rate limit is exceeded. |
Source code in grayven/grand_comics_database.py
| Python | |
|---|---|
264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 | |
list_issues
Request a list of Issues.
| PARAMETER | DESCRIPTION |
|---|---|
series_name
|
The name of the series to filter issues from.
TYPE:
|
issue_number
|
The number to filter issues by.
TYPE:
|
year
|
Filter the results using the issue year via its key_date.
TYPE:
|
max_results
|
Maximum number of results to retrieve.
TYPE:
|
| RETURNS | DESCRIPTION |
|---|---|
list[BasicIssue]
|
A list of Issue objects. |
| RAISES | DESCRIPTION |
|---|---|
ServiceError
|
If the API response is invalid or validation fails. |
AuthenticationError
|
If credentials are invalid. |
RateLimitError
|
If the API rate limit is exceeded. |
Source code in grayven/grand_comics_database.py
| Python | |
|---|---|
284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 | |
list_onsale_weekly_issues
Request a list of issues on sale in a given ISO week.
| PARAMETER | DESCRIPTION |
|---|---|
year
|
The ISO year (4-digit year).
TYPE:
|
week
|
The ISO week number (1-53).
TYPE:
|
max_results
|
Maximum number of results to retrieve.
TYPE:
|
| RETURNS | DESCRIPTION |
|---|---|
list[BasicIssue]
|
List of BasicIssue objects representing issues that went on sale during the given week. |
| RAISES | DESCRIPTION |
|---|---|
ServiceError
|
If the API response is invalid or validation fails. |
AuthenticationError
|
If credentials are invalid. |
RateLimitError
|
If the API rate limit is exceeded. |
Source code in grayven/grand_comics_database.py
| Python | |
|---|---|
167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 | |
list_publishers
Request a list of Publishers.
| PARAMETER | DESCRIPTION |
|---|---|
max_results
|
Maximum number of results to retrieve.
TYPE:
|
| RETURNS | DESCRIPTION |
|---|---|
list[Publisher]
|
A list of Publisher objects. |
| RAISES | DESCRIPTION |
|---|---|
ServiceError
|
If the API response is invalid or validation fails. |
AuthenticationError
|
If credentials are invalid. |
RateLimitError
|
If the API rate limit is exceeded. |
Source code in grayven/grand_comics_database.py
| Python | |
|---|---|
193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 | |
list_series
Request a list of Series.
| PARAMETER | DESCRIPTION |
|---|---|
name
|
Filter the results using the series name.
TYPE:
|
year
|
Filter the results using the series beginning year (Requires name to be passed).
TYPE:
|
max_results
|
Maximum number of results to retrieve.
TYPE:
|
| RETURNS | DESCRIPTION |
|---|---|
list[Series]
|
A list of Series objects. |
| RAISES | DESCRIPTION |
|---|---|
ServiceError
|
If the API response is invalid or validation fails. |
AuthenticationError
|
If credentials are invalid. |
RateLimitError
|
If the API rate limit is exceeded. |
Source code in grayven/grand_comics_database.py
| Python | |
|---|---|
233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 | |