Client¶
Functions¶
pyinaturalist.client.client¶
pyinaturalist.client.oauth¶
|
Build the OAuth2 authorization URL. |
Get an access token using the user's iNaturalist username and password, using the Resource Owner Password Credentials Flow. |
|
Get an access token using the OAuth2 Authorization Code flow, optionally with PKCE. |
|
Attempt to get iNaturalist credentials from the system keyring |
|
Store iNaturalist credentials in the system keyring for future use. |
|
Determine if an access token is valid |
pyinaturalist.client.oauth_callback¶
Build the OAuth2 authorization URL. |
|
Start a local HTTP server, open the browser for authorization, and wait for the callback. |
pyinaturalist.client.paginator¶
Get all pages of a multi-page request. |
pyinaturalist.client.session¶
Clear all cached API responses |
|
Wrapper around |
|
Format HTTP request info |
|
Format HTTP response info, including whether it came from the cache |
|
Wrapper around |
|
Get a thread-local Session object with default settings. |
|
A wrapper to determine if dry-run (aka test mode) has been enabled via either a constant or an environment variable. |
|
Wrapper around |
|
Wrapper around |