Settings
The following settings can be accessed and changed at runtime in yadisk.settings module:
- yadisk.settings.BASE_API_URL: str = 'https://cloud-api.yandex.net'
Base URL for Yandex.Disk’s REST API. Can be overriden for testing and other purposes
- yadisk.settings.BASE_OAUTH_API_URL: str = 'https://oauth.yandex.ru'
Base URL for Yandex.Disk’s OAuth API. Can be overriden for testing and other purposes
- yadisk.settings.DEFAULT_TIMEOUT: float | tuple[float | None, float | None] | None = (10.0, 15.0)
tuple of 2 numbers (int or float), default timeout for requests. First number is the connect timeout, the second one is the read timeout.
- yadisk.settings.DEFAULT_UPLOAD_RETRY_INTERVAL: float = 0.0
Analogous to
settings.DEFAULT_RETRY_INTERVALbut forClient.upload()/AsyncClient.upload()function
- yadisk.settings.DEFAULT_UPLOAD_TIMEOUT: float | tuple[float | None, float | None] | None = (10.0, 15.0)
Analogous to
settings.DEFAULT_TIMEOUTbut forClient.upload()/AsyncClient.upload()function
- yadisk.settings.logger = <Logger yadisk (WARNING)>
Logger for the library. Logs include information about requests to the API and automatic retry attempts.