User#

class autoreplit.classes.user.Role(id: str, name: str, key: str, tagline: str)#

Bases: object

A role object, provides role id, name, key and tagline. Keys are all caps.

id: str#
key: str#
name: str#
tagline: str#
class autoreplit.classes.user.Social(id: int, url: str, type: str)#

Bases: object

Social contact object, like "github"

id: int#
type: str#
url: str#
class autoreplit.classes.user.User(data: Dict[str, Any], pathName: str = 'userByUsername')#

Bases: QueryResultBase

The user object. Contains user data.

bio: str#

User description

displayName: str#
firstName: str | None#
followCount: int#

How many people the user is following

followerCount: int#

How many followers the user has

fullName: str#

The user’s full name

hasPrivacyRole: bool#

Replit students under the age of 13 (probably)

id: int#

User’s id

image: str#

User’s pfp

isBlockedByCurrentUser: bool#
isBlockingCurrentUser: bool#
isFollowedByCurrentUser: bool#
isFollowingCurrentUser: bool#
isOnline: bool#

True if the user is online

Note

Always False if no SID is provided.

isVerified: bool#
lastName: str | None#
lastSeen: str | None#

Date-Time str of the users last status update.

Note

Always None if no SID is provided.

locale: str#
publicRepls: List[BasicRepl]#

A list of the user’s public repl’s ids.

roles: Dict[str, Role]#

A dictonary of roles, keys are the role key, eg. "MODERATOR". The values are of the Role class.

socials: Dict[str, Social]#

A dictonary of social contacts, keys are the social type, eg. "github". The values are of the Social class.

url: str#

Path to the users profile

userSubscriptionType: str | None#

User’s plan, eg. "HACKER". None if the user has no plan

username: str#

User’s username