Skip to content

User

Bases: BaseModel, Bindable

Represents an OSM user

Attributes:

Name Type Description
id int

The ID of the user.

display_name str

The current display name of the user.

account_created datetime

The date and time the user was created.

description str

The description set by the user.

social_links list[SocialLink]

A list of social links, if any.

roles list[str]

A list of roles that the user has, if any.

contributor_terms ContributorTerms

An object with details about whether the user has accepted the Contributor Terms

company str | None = None

The company the user works for, if any.

img Image | None = None

The profile picture of the user, if any.

changesets Count

The number of changesets made by the user.

traces Count

The number of GPS traces uploaded by the user.

blocks Blocks

Details about the number of blocks that has been sent and received by the user and whether they are still active,

Blocks

Bases: BaseModel

Information about the number of blocks that has been received or issues by a user.

Attributes:

Name Type Description
received CountWithActive

The number of blocks the user has been received, including how many are still active.

issues CountWithActive

The number of blocks the user has issues, including how many are still active.

ContributorTerms

Bases: BaseModel

Information about whether the user has agreed to the Contributor Terms or not.

Attributes:

Name Type Description
agreed bool

Boolean flag represeting whether the user agreed to the Contributor Terms or not.

Count

Bases: BaseModel

A wrapper object for a count

Attributes:

Name Type Description
count int

The count

CountWithActive

Bases: BaseModel

A wrapper object for a count with how many are active

Attributes:

Name Type Description
count int

The count

count int

The number that are active

SocialLink

Bases: BaseModel

A link to a social account.

Attributes:

Name Type Description
url HttpUrl

The URL to the social account.

platform str | None

The name or description of the platform, if present.