Releases: alexdlaird/pyngrok
Releases · alexdlaird/pyngrok
4.0.1
Changed
- Moved
_DEFAULT_NGROK_CONFIG_PATH
fromngrok
module toconf
module, renamed toDEFAULT_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).
4.0.0
Added
PyngrokConfig
, which contains all ofpyngrok
's configuration for interacting with thengrok
binary rather than passing these values around in an ever-growing list ofkwargs
. It is documented here.log_event_callback
is a new configuration parameter inPyngrokConfig
, a callback that will be invoked each time angrok
log is emitted.monitor_thread
is a new configuration parameter inPyngrokConfig
which determines whetherngrok
should continue to be monitored (for logs, etc.) after it has finished starting. Defaults toTrue
.startup_timeout
is a new configuration parameter inPyngrokConfig
.max_logs
is a new configuration parameter inPyngrokConfig
.start_monitor_thread()
andstop_monitor_thread()
to NgrokProcess.
Changed
timeout
parameter that was passed down tongrok.api_request()
is now configurable byrequest_timeout
inPyngrokConfig
.- Max number of logs stored by the
NgrokProcess
from 500 to 100. NgrokProcess.log_boot_line()
renamed toNgrokProcess._log_startup_line()
.NgrokProcess.log_line()
renamed toNgrokProcess._log_line()
.- Auto-generated tunnel names (if
name
is not given when callingngrok.connect()
) are no prefixed withproto
andport
. web_addr
cannot be set tofalse
in, as thepyngrok
modules depends on this API.
Fixed
installer.install_default_config()
documentation now properly reflects thatdata
is adict
and not astr
.
Removed
ngrok_path
,config_path
,auth_token
, andregion
were all removed fromprocess.get_process()
. Use PyngrokConfig instead.ngrok_path
,config_path
,auth_token
, andregion
were all removed fromngrok.get_ngrok_process()
. Use PyngrokConfig instead.ngrok_path
,config_path
,auth_token
,region
, andtimeout
were all removed fromngrok.connect()
. Use PyngrokConfig instead.ngrok_path
,config_path
, andtimeout
were all removed fromngrok.disconnect()
. Use PyngrokConfig instead.ngrok_path
, andtimeout
were all removed fromngrok.get_tunnels()
. Use PyngrokConfig instead.
3.1.1
Changed
- Limit number of
NgrokLog
s stored inNgrokProcess
'slogs
variable to last 500.
3.1.0
Added
- After
ngrok
starts, the process moves into its own thread andNgrokLog
s continue to be parsed for programmatic access.
3.0.0
- NgrokLog class is a parsed representation of
ngrok
's logs for more accessible debugging. logs
variable toNgrokProcess
class, which is aNgrokLog
object.
Changed
ngrok_logs
inPyngrokNgrokException
is now a list ofNgrokLog
s instead ofstr
s.- When starting the
ngrok
process, log levels now matchngrok
s in its startup logs.
Removed
startup_logs
fromNgrokProcess
, uselogs
instead.
2.1.7
Fixed
- Documentation and SEO improvements.
2.1.6
Fixed
- Documentation and SEO improvements.
2.1.5
Added
Changed
- PyPI package classifiers.
2.1.4
Added
Fixed
- FreeBSD is now listed as a supported platform and the correct binary is chosen.