Github objects

class github.GithubObject.GithubObject

Base class for all classes representing objects returned by the API.

property requester: Requester

Return my Requester object.

For example, to make requests to API endpoints not yet supported by PyGitHub.

property raw_data: dict[str, Any]
Type:

dict

property raw_headers: dict[str, str | int]
Type:

dict

property api_version: str | None

The Github API version of this PyGithub object as returned by the Github API.

This does not reflect the API version configured via Github(api_version=…) or GithubIntegration(api_version=…).

Type:

str

property etag: str | None
Type:

str

property last_modified: str | None
Type:

str

property last_modified_datetime: datetime | None
Type:

datetime

get__repr__(params: dict[str, Any]) str

Converts the object to a nicely printable string.