Conf¶
-
class
astropy.utils.data.
Conf
[source]¶ Bases:
astropy.config.ConfigNamespace
Configuration parameters for
astropy.utils.data
.Attributes Summary
If False, prevents any attempt to download from Internet.
Block size for computing file hashes.
Primary URL for astropy remote data site.
Mirror URL for astropy remote data site.
Default User-Agent for HTTP request headers.
If True, temporary download files created when the cache is inaccessible will be deleted at the end of the python session.
Number of bytes of remote data to download per step.
Unused; cache no longer locked.
Time to wait for remote data queries (in seconds).
Attributes Documentation
-
allow_internet
¶ If False, prevents any attempt to download from Internet.
-
compute_hash_block_size
¶ Block size for computing file hashes.
-
dataurl
¶ Primary URL for astropy remote data site.
-
dataurl_mirror
¶ Mirror URL for astropy remote data site.
-
default_http_user_agent
¶ Default User-Agent for HTTP request headers. This can be overwritten for a particular call via http_headers option, where available. This only provides the default value when not set by https_headers.
-
delete_temporary_downloads_at_exit
¶ If True, temporary download files created when the cache is inaccessible will be deleted at the end of the python session.
-
download_block_size
¶ Number of bytes of remote data to download per step.
-
download_cache_lock_attempts
¶ Unused; cache no longer locked. Was: Number of seconds to wait for the cache lock to be free. It should normally only ever be held long enough to copy an already-downloaded file into the cache, so this will normally only run over if something goes wrong and the lock is left held by a dead process; the exception raised should indicate this and what to do to fix it.
-
remote_timeout
¶ Time to wait for remote data queries (in seconds). Set this to zero to prevent any attempt to download anything (this will stop working in a future release, use allow_internet=False instead).
-