Skip to content

5.0.0

Choose a tag to compare

@alexdlaird alexdlaird released this 25 Oct 15:09

Added

Changed

  • ngrok.connect() now returns a NgrokTunnel instead of a str of the
    public URL. The returned NgrokTunnel has a reference to the previously returned public_url in it.
  • ngrok.connect() changed its signature, renamed kwarg port (the first arg) to addr to match ngrok's documentation.
  • ngrok.connect() changed its signature, the options kwarg should now be unpacked, pass each option directly to the method as a kwarg.
  • NgrokTunnel.__init__()'s params (data, pyngrok_config, and api_url) are now required.
  • ngrok.disconnect() no longer installs and starts ngrok, it simply returns if the ngrok process has not been started.
  • Renamed conf.DEFAULT_PYNGROK_CONFIG to conf._default_pyngrok_config (use conf.set_default() instead).
  • Renamed ngrok.ensure_ngrok_installed() to ngrok.install_ngrok().
  • ngrok.install_ngrok() (formerly ngrok.ensure_ngrok_installed()) changed its signature, now takes a pyngrok_config (optional) instead of ngrok_path as its only arg.
  • Renamed process._ensure_path_ready() to process._validate_path().

Removed

  • Support for Python 2.7. Legacy documentation for 4.1, the latest version with Python 2.7 support, can be found here.
  • return_ngrok_tunnel from ngrok.connect(). The kwarg can still be passed, but it will do nothing, it now always uses the True behavior.