mirror of
https://github.com/status-im/PyGithub.git
synced 2026-08-31 19:01:15 +00:00
26 lines
993 B
Python
26 lines
993 B
Python
from GithubObject import *
|
|
|
|
AuthenticatedUser = GithubObject(
|
|
"AuthenticatedUser",
|
|
BaseUrl( lambda obj: "/user" ),
|
|
SimpleScalarAttributes(
|
|
"login", "id", "avatar_url", "gravatar_id", "url", "name", "company",
|
|
"blog", "location", "email", "hireable", "bio", "public_repos",
|
|
"public_gists", "followers", "following", "html_url", "created_at",
|
|
"type", "total_private_repos", "owned_private_repos", "private_gists",
|
|
"disk_usage", "collaborators", "plan"
|
|
),
|
|
)
|
|
|
|
NamedUser = GithubObject(
|
|
"NamedUser",
|
|
BaseUrl( lambda obj: "/users/" + obj.login ),
|
|
SimpleScalarAttributes(
|
|
"login", "id", "avatar_url", "gravatar_id", "url", "name", "company",
|
|
"blog", "location", "email", "hireable", "bio", "public_repos",
|
|
"public_gists", "followers", "following", "html_url", "created_at",
|
|
"type", "total_private_repos", "owned_private_repos", "private_gists",
|
|
"disk_usage", "collaborators", "plan"
|
|
),
|
|
)
|