Schema
paspybin.schemas
Paste
dataclass
A schema used to store info about paste.
Attributes:
| Name | Type | Description |
|---|---|---|
key |
PasteKey
|
key of paste |
date |
datetime | None
|
created date of paste |
title |
str | None
|
title of paste |
size |
int | None
|
size of paste |
expire_date |
datetime | None
|
expire date of paste |
private |
Visibility | None
|
visibility of paste |
format |
Format | None
|
syntax highlighting format of paste |
url |
PastebinUrl | None
|
url location of paste |
hits |
int | None
|
views count of paste |
Note
It is actually impossible for the fields date, size, expire_date,
private,format, url, and hits to have the value None based on the API
documentation, however, to make it easier to use the API wrapper so that it is
more flexible, these fields are made so that they can contain the value None.
User
dataclass
A schema used to store info about user.
Attributes:
| Name | Type | Description |
|---|---|---|
name |
str
|
name of user |
format |
Format
|
syntax highlighting format of user |
expiration |
Expire
|
expire enum of user |
avatar_url |
str
|
avatar url of user |
private |
Visibility
|
visibility of user |
website |
str | None
|
website of user |
email |
str
|
email of user |
location |
str | None
|
location of user |
account_type |
Type
|
account type of user |