atproto_client.client.session

class atproto_client.client.session.Session(handle: str, did: str, access_jwt: str, refresh_jwt: str, pds_endpoint: str | NoneType = 'https://bsky.social')

Bases: object

access_jwt: str
copy() Session
classmethod decode(session_string: str) Session
did: str
encode() str
export() str

Alias for encode

handle: str
pds_endpoint: str | None = 'https://bsky.social'
refresh_jwt: str
class atproto_client.client.session.SessionEvent(value)

Bases: Enum

An enumeration.

CREATE = 'creat'
IMPORT = 'import'
REFRESH = 'refresh'
atproto_client.client.session.get_session_pds_endpoint(session: models.ComAtprotoServerCreateSession.Response | models.ComAtprotoServerRefreshSession.Response | Session) str | None

Return the PDS endpoint of the given session.

Note

Return None for self-hosted PDSs.