download_with_tqdm_progress_bar#

API documentation for tradingstrategy.transport.progress_enabled_download.download_with_tqdm_progress_bar Python function.

download_with_tqdm_progress_bar(session, path, url, params, timeout, human_readable_hint)[source]#

Use tqdm library to raw a graphical progress bar in notebooks for long downloads.

Autodetects the Python execution environment

  • Displays HTML progress bar in Jupyter notebooks

  • Displays ANSI progress bar in a console

See tradingstrategy.transport.cache.CachedHTTPTransport.save_response() for more information.

Parameters:
  • session (Session) –

  • path (str) –

  • url (str) –

  • params (dict) –

  • timeout (float) –

  • human_readable_hint (Optional[str]) –