Bot releases are hidden (Show)
Published by alexdlaird about 3 years ago
reconnect_session_retries
from PyngrokConfig
, instead relying on ngrok
's own built-in retry mechanism on startup fails.Published by alexdlaird over 3 years ago
reconnect_session_retries
is a new configuration parameter in PyngrokConfig
, which determines the max number of times to retry establishing a new session with ngrok
if the connection fails on startup.Published by alexdlaird over 3 years ago
Published by alexdlaird over 3 years ago
Published by alexdlaird over 3 years ago
bind_tls
was set to False
.Published by alexdlaird almost 4 years ago
ngrok
's tunnel definitions when calling ngrok.connect(). If a tunnel definition in ngrok
's config matches the given name
, it will be used to start the tunnel.ngrok
tunnel definition named "pyngrok-default" when calling ngrok.connect(). When name
is None
and a "pyngrok-default" tunnel definition exists it ngrok
's config, it will be used.ngrok
is already running without also implicitly starting it.ngrok
and pyngrok
versions in a tuple.conf.DEFAULT_PYNGROK_CONFIG
.conf.DEFAULT_PYNGROK_CONFIG
.refresh_metrics()
to NgrokTunnel.data
to NgrokTunnel, which holds the original tunnel data.ngrok
, if an update is available.str
of the public URL. The returned NgrokTunnel
has a reference to the previously returned public_url
in it.port
(the first arg) to addr
to match ngrok
's documentation.options
kwarg should now be unpacked, pass each option directly to the method as a kwarg.__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.conf.DEFAULT_PYNGROK_CONFIG
to conf._default_pyngrok_config
(use conf.set_default() instead).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.process._ensure_path_ready()
to process._validate_path()
.pyngrok
with Python 2.7, pin pyngrok>=4.1,<4.2
.return_ngrok_tunnel
from ngrok.connect()
. The kwarg
can still be passed, but it will do nothing, it now always uses the True
behavior.The next release, 5.0.0, contains breaking changes, including dropping support for Python 2.7. 4.2.x is meant to ease
migration between 4.1.x and 5.0.0 and should not be pinned, as it will not be supported after 5.0.0 is released. To
prepare for these breaking changes, see the changelog below. To avoid these breaking changes altogether, or if
Python 2.7 support is still needed, pin pyngrok>=4.1,<4.2
.
options
with kwargs
, maintained backwards compatibility. Support for passing options
as a dict will be removed in 5.0.0, unpack the dict as kwargs
.return_ngrok_tunnel
to its args, which defaults to False
for backwards compatibility. This will default to True
in 5.0.0, and the flag will be removed.conf.DEFAULT_PYNGROK_CONFIG
, which will be removed in 5.0.0.ngrok
and pyngrok
versions in a tuple.refresh_metrics()
to NgrokTunnel.ngrok.api_request()
using params
for filtering with special characters.params
is now properly documented as a dict
instead of a list
.ngrok
logs.Published by alexdlaird about 4 years ago
log_format
in ngrok
's config.yaml
, as pyngrok
depends on key/value logs.log_level
in ngrok
's config.yaml
, as pyngrok
depends on the level being either info
or debug
.Published by alexdlaird about 4 years ago
bind_tls
is True
, the public_url
return from ngrok.connect()
is now https
.Published by alexdlaird about 4 years ago
ngrok
logs now maintains its own alive
state instead of modifying PyngrokConfig.monitor_thread
.ngrok
logs is now daemonic, so it no longer blocks the Python process from terminating.Published by alexdlaird about 4 years ago
DEFAULT_PYNGROK_CONFIG
variable to conf
module, used when pyngrok_config
is not passed to ngrok
methods.ngrok
exited early or was terminated externally.Published by alexdlaird about 4 years ago
TypeError
exception when a NgrokLog
parses a string that contains a missing or malformed lvl
. Default is now NOTSET
in such cases.Published by alexdlaird over 4 years ago
start_new_process
is a new configuration parameter in PyngrokConfig
, which will be passed to subprocess.Popen when ngrok
is started. Requires Python 3 and POSIX.Published by alexdlaird over 4 years ago
ngrok
itself has a bug around not properly escaping characters in tunnel names, so avoiding this bug for fileserver tunnels by substituting their name.Published by alexdlaird over 4 years ago
file:///
) being passed as ngrok.connect()
's port
. This is valid, and ngrok
will use its built-in fileserver for the tunnel.