Skip to content

User

🛈 DocStrings

User or organization account on a Git hosting platform.

Source code in src/githarbor/core/models.py
@dataclass
class User:
    """User or organization account on a Git hosting platform."""

    username: str
    """Username of the user."""
    name: str | None = None
    """Full name of the user."""
    email: str | None = None
    """Email address of the user."""
    avatar_url: str | None = None
    """URL of the user's avatar image."""
    created_at: datetime | None = None
    """Date and time when the user account was created."""
    bio: str | None = None
    """Biography/description of the user."""
    location: str | None = None
    """Geographic location of the user."""
    company: str | None = None
    """Company/organization the user belongs to."""
    state: str | None = None
    """State of the user (active / inactive)."""
    locked: bool | None = None
    """Whether user is locked."""
    followers: int | None = None
    """Number of followers."""
    following: int | None = None
    """Number of users being followed."""
    public_repos: int | None = None
    """Number of public repositories."""
    url: str | None = None
    """URL to user's profile."""
    blog: str | None = None
    """Personal blog of this user"""
    twitter_username: str | None = None
    """X / Twitter username of this user"""
    hireable: bool | None = None
    """Whether user is available for hiring"""
    gravatar_id: str | None = None
    """Gravatar id for this user."""
    is_admin: bool | None = None
    """Whether the user has admin privileges."""
    last_activity_on: datetime | None = None
    """Date of last activity."""
    linkedin: str | None = None
    """LinkedIn username."""
    skype: str | None = None
    """Skype username."""

avatar_url class-attribute instance-attribute

avatar_url: str | None = None

URL of the user's avatar image.

bio class-attribute instance-attribute

bio: str | None = None

Biography/description of the user.

blog class-attribute instance-attribute

blog: str | None = None

Personal blog of this user

company class-attribute instance-attribute

company: str | None = None

Company/organization the user belongs to.

created_at class-attribute instance-attribute

created_at: datetime | None = None

Date and time when the user account was created.

email class-attribute instance-attribute

email: str | None = None

Email address of the user.

followers class-attribute instance-attribute

followers: int | None = None

Number of followers.

following class-attribute instance-attribute

following: int | None = None

Number of users being followed.

gravatar_id class-attribute instance-attribute

gravatar_id: str | None = None

Gravatar id for this user.

hireable class-attribute instance-attribute

hireable: bool | None = None

Whether user is available for hiring

is_admin class-attribute instance-attribute

is_admin: bool | None = None

Whether the user has admin privileges.

last_activity_on class-attribute instance-attribute

last_activity_on: datetime | None = None

Date of last activity.

linkedin class-attribute instance-attribute

linkedin: str | None = None

LinkedIn username.

location class-attribute instance-attribute

location: str | None = None

Geographic location of the user.

locked class-attribute instance-attribute

locked: bool | None = None

Whether user is locked.

name class-attribute instance-attribute

name: str | None = None

Full name of the user.

public_repos class-attribute instance-attribute

public_repos: int | None = None

Number of public repositories.

skype class-attribute instance-attribute

skype: str | None = None

Skype username.

state class-attribute instance-attribute

state: str | None = None

State of the user (active / inactive).

twitter_username class-attribute instance-attribute

twitter_username: str | None = None

X / Twitter username of this user

url class-attribute instance-attribute

url: str | None = None

URL to user's profile.

username instance-attribute

username: str

Username of the user.

:fa-brands-github: Show source on GitHub