pyngrok

A Python wrapper for ngrok

MIT License

Downloads
365.9K
Stars
421
Committers
9

Bot releases are hidden (Show)

pyngrok - 4.1.3

Published by alexdlaird over 4 years ago

Fixed

  • Issue where NgrokLog did not properly split on just the first = character when parsing a log.
pyngrok - 4.1.2

Published by alexdlaird over 4 years ago

Fixed

  • Python 2 compatibility issue with download progress bar.
pyngrok - 4.1.1

Published by alexdlaird over 4 years ago

Fixed

  • Stability improvements.
  • Documentation improvements.
pyngrok - 4.1.0

Published by alexdlaird over 4 years ago

Added

  • Progress bar when ngrok is being downloaded and installed for the first time.
  • Version number displayed in CLI's --help.
  • installer.install_ngrok() and installer._download_file() now accept **kwargs, which are passed down to urllib.request.urlopen, and updated the documentation.

Fixed

  • Documentation improvements.
pyngrok - 4.0.3

Published by alexdlaird over 4 years ago

Fixed

  • Build improvements.
pyngrok - 4.0.2

Published by alexdlaird over 4 years ago

Added

  • PyPI package classifiers.

Fixed

  • Build improvements.
pyngrok -

Published by alexdlaird over 4 years ago

Changed

  • Moved _DEFAULT_NGROK_CONFIG_PATH from ngrok module to conf module, renamed to DEFAULT_NGROK_CONFIG_PATH.

Fixed

  • Exception thrown when trying to validate the config when no file is given (i.e. the variable is None and thus the default should be used).
pyngrok - 4.0.0

Published by alexdlaird over 4 years ago

Added

  • PyngrokConfig, which contains all of pyngrok's configuration for interacting with the ngrok binary rather than passing these values around in an ever-growing list of kwargs. It is documented here.
  • log_event_callback is a new configuration parameter in PyngrokConfig, a callback that will be invoked each time a ngrok log is emitted.
  • monitor_thread is a new configuration parameter in PyngrokConfig which determines whether ngrok should continue to be monitored (for logs, etc.) after it has finished starting. Defaults to True.
  • startup_timeout is a new configuration parameter in PyngrokConfig.
  • max_logs is a new configuration parameter in PyngrokConfig.
  • start_monitor_thread() and stop_monitor_thread() to NgrokProcess.

Changed

  • timeout parameter that was passed down to ngrok.api_request() is now configurable by request_timeout in PyngrokConfig.
  • Max number of logs stored by the NgrokProcess from 500 to 100.
  • NgrokProcess.log_boot_line() renamed to NgrokProcess._log_startup_line().
  • NgrokProcess.log_line() renamed to NgrokProcess._log_line().
  • Auto-generated tunnel names (if name is not given when calling ngrok.connect()) are no prefixed with proto and port.
  • web_addr cannot be set to false in, as the pyngrok modules depends on this API.

Fixed

  • installer.install_default_config() documentation now properly reflects that data is a dict and not a str.

Removed

  • ngrok_path, config_path, auth_token, and region were all removed from process.get_process(). Use PyngrokConfig instead.
  • ngrok_path, config_path, auth_token, and region were all removed from ngrok.get_ngrok_process(). Use PyngrokConfig instead.
  • ngrok_path, config_path, auth_token, region, and timeout were all removed from ngrok.connect(). Use PyngrokConfig instead.
  • ngrok_path, config_path, and timeout were all removed from ngrok.disconnect(). Use PyngrokConfig instead.
  • ngrok_path, and timeout were all removed from ngrok.get_tunnels(). Use PyngrokConfig instead.
pyngrok -

Published by alexdlaird over 4 years ago

Changed

  • Limit number of NgrokLogs stored in NgrokProcess's logs variable to last 500.
pyngrok -

Published by alexdlaird over 4 years ago

Added

  • After ngrok starts, the process moves into its own thread and NgrokLogs continue to be parsed for programmatic access.
pyngrok -

Published by alexdlaird over 4 years ago

  • NgrokLog class is a parsed representation of ngrok's logs for more accessible debugging.
  • logs variable to NgrokProcess class, which is a NgrokLog object.

Changed

  • ngrok_logs in PyngrokNgrokException is now a list of NgrokLogs instead of strs.
  • When starting the ngrok process, log levels now match ngroks in its startup logs.

Removed

pyngrok -

Published by alexdlaird over 4 years ago

Fixed

  • Documentation and SEO improvements.
pyngrok -

Published by alexdlaird over 4 years ago

Fixed

  • Documentation and SEO improvements.
pyngrok -

Published by alexdlaird over 4 years ago

This is a pre-release.

pyngrok -

Published by alexdlaird over 4 years ago

This is a pre-release.

pyngrok -

Published by alexdlaird over 4 years ago

This is a pre-release.

pyngrok -

Published by alexdlaird over 4 years ago

This is a pre-release.

pyngrok -

Published by alexdlaird over 4 years ago

This is a pre-release.

pyngrok -

Published by alexdlaird over 4 years ago

This is a pre-release.

pyngrok -

Published by alexdlaird over 4 years ago

This is a pre-release.