Skip to content

Releases: alexdlaird/hookee

1.2.2

20 Sep 22:15
Compare
Choose a tag to compare

Added

  • Console output colors are now configurable.
  • Improved formatting for enabled/available plugin listing from CLI.
  • Support for description for a Plugin.
  • More tests for PluginManager edge cases.
  • Documentation improvements.

Changed

  • Removed "Beta" label in PyPI classifiers.
  • Default console output for request data is now white, but configurable.

1.2.1

17 Sep 21:06
Compare
Choose a tag to compare

Added

  • Documentation improvements.

Changed

  • Renamed Config.click_ctx to Config.click_logging, is now kwarg to Config so it can be passed on instantiation.

Fixed

  • Formatting in console output.

1.2.0

17 Sep 05:26
Compare
Choose a tag to compare

Added

  • Output of enabled plugins on startup
  • HookeeManager class is now available with a simple from hookee import HookeeManager import.
  • HookeeManager can now be instantiated with a config arg, making integration more accessible.
  • response_callback as a new config. Not accessible from the command line, meant for integrations, and not compatible with --response.
  • When --response, a lambda is created for response_callback (in conjunction with --content-type, if present) and that is now used in PluginManager.run_response_plugins().
  • Documentation improvements.

Changed

  • PluginManager's response_body and response_content_type variables have been replaced with response_callback, a lambda that is generated if these configuration values are given.
  • Removed PluginManager's request_script and response_script variables, instead these are added to loaded_plugins after their Plugin is validated and instantiated.
  • If hookee was instantiated via its API rather than from the CLI (i.e. click.Context is None), HookeeManager throws exceptions and PrintUtil appends to a logger instead of interacting with click.Context or echo functions.

Removed

  • conf.Context in favor of using click.Context.
  • Access to the click.Context except in HookeeManager, which now has its own abstraction around such actions.

1.1.0

16 Sep 05:57
Compare
Choose a tag to compare

Added

  • Documentation improvements.
  • Default Context object in conf, which is used as the default when None is given to HookeeManager.

Changed

  • Renamed CliManager class to HookeeManager.
  • Renamed HookeeManager.start() to HookeeManager.run().
  • PluginManager.enabled_plugins() no longer sorts the returned list, as plugins should be executed (and listed) in preferred order.

Fixed

  • Build improvements.

1.0.1

11 Sep 18:51
Compare
Choose a tag to compare

Added

  • --version arg.
  • Documentation improvements.
  • Plugin class, which is what is now put in to pluginmanager.PluginManager.loaded_plugins. Plugin objects are now passed around instead of module objects.

Fixed

  • pluginmanager.get_plugins_by_type() now properly returns a list, as documented, instead of a filter.
  • Plugin validation when util.get_args() is called.
  • Validation to fail when no response plugin (or arg override) is given.
  • Edge cases to properly populate response when it would otherwise be None.

1.0.0

11 Sep 00:41
Compare
Choose a tag to compare

Added

  • Additional ngrok passthrough args: hostname and host_header.
  • Documentation improvements.

Fixed

  • When calling update-config, dashes - are converted to underscores _ to match the config.
  • Stability improvements.

0.0.12

07 Sep 15:32
Compare
Choose a tag to compare

Added

  • Stable test suite.

Changed

  • Replaced response_json and response_xml plugins with response_echo plugin.
  • Renamed --list-plugins to --available-plugins.

Fixed

  • Stability improvements.
  • Documentation improvements.

0.0.8

06 Sep 02:01
Compare
Choose a tag to compare

Added

  • Usage examples to documentation.
  • Plugin development documentation.
  • --request and --content-type args to pass response body data directly from the CLI without the need for a plugin or script.

Changed

  • Replaced underscores with dashes in CLI args.
  • Renamed --request CLI arg to--request-script.
  • Renamed --response CLI arg to --response-script.
  • Renamed last_request config to request_script.
  • Renamed last_response config to response_script.

Fixed

  • Documentation improvements.

0.0.7

03 Sep 23:23
Compare
Choose a tag to compare

Added

  • Additional ngrok passthrough args: region, subdomain, and auth.
  • list-plugins and enabled-plugins to the CLI.
  • --request to the CLI, a Python script whose run(request) method will be called by the default /webhook after all request plugins have run.
  • --response to the CLI, s Python script whose run(request, response) method will be called by the default /webhook after all response plugins have run.
  • Better console output.
  • API documentation.

Changed

  • Combined config-related CLI commands into single command, set-config KEY VALUE.

Fixed

  • Stability improvements.

0.0.6

02 Sep 17:59
Compare
Choose a tag to compare

Fixed

  • Default config file was not being included in previous packages.