hookee


Namehookee JSON
Version 2.3.12 PyPI version JSON
download
home_pageNone
SummaryCommand line webhooks, on demand
upload_time2025-07-10 12:25:41
maintainerNone
docs_urlNone
authorNone
requires_python>=3.9
licenseNone
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            <p align="center"><img alt="hookee - command line webhooks, on demand" src="https://hookee.readthedocs.io/en/latest/_images/logo.png" /></p>

[![Version](https://img.shields.io/pypi/v/hookee)](https://pypi.org/project/hookee)
[![Python Versions](https://img.shields.io/pypi/pyversions/hookee.svg)](https://pypi.org/project/hookee/)
[![Coverage](https://img.shields.io/codecov/c/github/alexdlaird/hookee)](https://codecov.io/gh/alexdlaird/hookee)
[![Build](https://img.shields.io/github/actions/workflow/status/alexdlaird/hookee/build.yml)](https://github.com/alexdlaird/hookee/actions/workflows/build.yml)
[![Docs](https://img.shields.io/readthedocs/hookee)](https://hookee.readthedocs.io/en/latest)
[![GitHub License](https://img.shields.io/github/license/alexdlaird/hookee)](https://github.com/alexdlaird/hookee/blob/main/LICENSE)

`hookee` is a utility that provides command line webhooks, on demand! Dump useful request data to the
console, process requests and responses, customize response data, and configure `hookee` and its routes
further in any number of ways through custom plugins.

## Installation

`hookee` is available on [PyPI](https://pypi.org/project/hookee/) and can be installed
using `pip`:

```sh
pip install hookee
```

or `conda`:

```sh
conda install -c conda-forge hookee
```

That's it! `hookee` is now available as a Python package and is available from the command line.

### Configure `authtoken`

To get the most out of `hookee`, you'll want to obtain an [authtoken from `ngrok`](https://dashboard.ngrok.com/) (it's
free!) and install it in to `hookee`'s config file:

```sh
hookee authtoken $NGROK_AUTHTOKEN
```

## Basic Usage

`hookee` makes it easy to get webhooks on the fly right from the console. Simply start it with:

```sh
hookee start
```

With its default configuration, this will start a server on port 8000, open a [`ngrok`](https://ngrok.com/) tunnel
using [`pyngrok`](https://pyngrok.readthedocs.io/en/latest/), and mount a URL at `/webhook`. Sending any request to
the `/webhook` endpoint will dump the request and response data to the console.

`hookee` can be configured in a number of ways to quickly and easily tweak request and response data. For example,
here is how you can customize the response body from `/webhook` using the `--response` arg.

```sh
hookee --response "<Response>Ok</Response>" \
    --content-type application/xml
```

`hookee` can also be started without a tunnel (removing the dependency on `ngrok` and an Internet connection). Using
the `--no-tunnel` flag only starts `hookee`'s server, allowing responses to be mocked locally. This can be particularly
useful when service discovery is done through a proxy service (ex. [HAProxy](https://www.haproxy.org/),
[Envoy](https://www.envoyproxy.io/), etc.), meaning you can tell `hookee` to start on the port of an expected downstream,
thus intercepting requests to that service to provide your own responses in an isolated environment, very useful for
rapid local development, cluster testing, and more.

```sh
hookee --no-tunnel --response "<Response>Ok</Response>" \
    --content-type application/xml \
    --default-route /some/route \
    --port 19780
```

To see the ways `hookee` can be tweaked right from the console, view its documented args and commands like this:

```sh
hookee --help
```

## Documentation

For more advanced usage, including how `hookee`'s default configuration can be changed, extended through plugins,
API integrations, and more, see its official documentation is available
at [Read the Docs](http://hookee.readthedocs.io).

## Contributing

If you would like to get involved, be sure to review
the [Contribution Guide](https://github.com/alexdlaird/hookee/blob/main/CONTRIBUTING.rst).

Want to contribute financially? If you've found `hookee` useful, [sponsorship](https://github.com/sponsors/alexdlaird)
would
also be greatly appreciated!

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "hookee",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.9",
    "maintainer_email": "Alex Laird <contact@alexlaird.com>",
    "keywords": null,
    "author": null,
    "author_email": "Alex Laird <contact@alexlaird.com>",
    "download_url": "https://files.pythonhosted.org/packages/f3/cb/a3410b33b86f6ca72ada4fa7fcdc83601441a5cee43b26c8aff320cfac01/hookee-2.3.12.tar.gz",
    "platform": null,
    "description": "<p align=\"center\"><img alt=\"hookee - command line webhooks, on demand\" src=\"https://hookee.readthedocs.io/en/latest/_images/logo.png\" /></p>\n\n[![Version](https://img.shields.io/pypi/v/hookee)](https://pypi.org/project/hookee)\n[![Python Versions](https://img.shields.io/pypi/pyversions/hookee.svg)](https://pypi.org/project/hookee/)\n[![Coverage](https://img.shields.io/codecov/c/github/alexdlaird/hookee)](https://codecov.io/gh/alexdlaird/hookee)\n[![Build](https://img.shields.io/github/actions/workflow/status/alexdlaird/hookee/build.yml)](https://github.com/alexdlaird/hookee/actions/workflows/build.yml)\n[![Docs](https://img.shields.io/readthedocs/hookee)](https://hookee.readthedocs.io/en/latest)\n[![GitHub License](https://img.shields.io/github/license/alexdlaird/hookee)](https://github.com/alexdlaird/hookee/blob/main/LICENSE)\n\n`hookee` is a utility that provides command line webhooks, on demand! Dump useful request data to the\nconsole, process requests and responses, customize response data, and configure `hookee` and its routes\nfurther in any number of ways through custom plugins.\n\n## Installation\n\n`hookee` is available on [PyPI](https://pypi.org/project/hookee/) and can be installed\nusing `pip`:\n\n```sh\npip install hookee\n```\n\nor `conda`:\n\n```sh\nconda install -c conda-forge hookee\n```\n\nThat's it! `hookee` is now available as a Python package and is available from the command line.\n\n### Configure `authtoken`\n\nTo get the most out of `hookee`, you'll want to obtain an [authtoken from `ngrok`](https://dashboard.ngrok.com/) (it's\nfree!) and install it in to `hookee`'s config file:\n\n```sh\nhookee authtoken $NGROK_AUTHTOKEN\n```\n\n## Basic Usage\n\n`hookee` makes it easy to get webhooks on the fly right from the console. Simply start it with:\n\n```sh\nhookee start\n```\n\nWith its default configuration, this will start a server on port 8000, open a [`ngrok`](https://ngrok.com/) tunnel\nusing [`pyngrok`](https://pyngrok.readthedocs.io/en/latest/), and mount a URL at `/webhook`. Sending any request to\nthe `/webhook` endpoint will dump the request and response data to the console.\n\n`hookee` can be configured in a number of ways to quickly and easily tweak request and response data. For example,\nhere is how you can customize the response body from `/webhook` using the `--response` arg.\n\n```sh\nhookee --response \"<Response>Ok</Response>\" \\\n    --content-type application/xml\n```\n\n`hookee` can also be started without a tunnel (removing the dependency on `ngrok` and an Internet connection). Using\nthe `--no-tunnel` flag only starts `hookee`'s server, allowing responses to be mocked locally. This can be particularly\nuseful when service discovery is done through a proxy service (ex. [HAProxy](https://www.haproxy.org/),\n[Envoy](https://www.envoyproxy.io/), etc.), meaning you can tell `hookee` to start on the port of an expected downstream,\nthus intercepting requests to that service to provide your own responses in an isolated environment, very useful for\nrapid local development, cluster testing, and more.\n\n```sh\nhookee --no-tunnel --response \"<Response>Ok</Response>\" \\\n    --content-type application/xml \\\n    --default-route /some/route \\\n    --port 19780\n```\n\nTo see the ways `hookee` can be tweaked right from the console, view its documented args and commands like this:\n\n```sh\nhookee --help\n```\n\n## Documentation\n\nFor more advanced usage, including how `hookee`'s default configuration can be changed, extended through plugins,\nAPI integrations, and more, see its official documentation is available\nat [Read the Docs](http://hookee.readthedocs.io).\n\n## Contributing\n\nIf you would like to get involved, be sure to review\nthe [Contribution Guide](https://github.com/alexdlaird/hookee/blob/main/CONTRIBUTING.rst).\n\nWant to contribute financially? If you've found `hookee` useful, [sponsorship](https://github.com/sponsors/alexdlaird)\nwould\nalso be greatly appreciated!\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "Command line webhooks, on demand",
    "version": "2.3.12",
    "project_urls": {
        "Changelog": "https://github.com/alexdlaird/hookee/blob/main/CHANGELOG.md",
        "Documentation": "https://hookee.readthedocs.io",
        "Source Code": "https://github.com/alexdlaird/hookee",
        "Sponsor": "https://github.com/sponsors/alexdlaird"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "bfa37b778fc15ce86e79a90505ae946738480893c3cbd4e4e30715d78871b1b4",
                "md5": "245fe101102f85758593010daae6be7d",
                "sha256": "417ff05915e59c6c295bc2a6e434731ea1f1c5693f020ef0c5222e12adc819f3"
            },
            "downloads": -1,
            "filename": "hookee-2.3.12-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "245fe101102f85758593010daae6be7d",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.9",
            "size": 25266,
            "upload_time": "2025-07-10T12:25:40",
            "upload_time_iso_8601": "2025-07-10T12:25:40.244391Z",
            "url": "https://files.pythonhosted.org/packages/bf/a3/7b778fc15ce86e79a90505ae946738480893c3cbd4e4e30715d78871b1b4/hookee-2.3.12-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "f3cba3410b33b86f6ca72ada4fa7fcdc83601441a5cee43b26c8aff320cfac01",
                "md5": "939540fc094a9a03a39664f9170707d8",
                "sha256": "c7c4aade529d15a1e07a75d1083878461d26951ccffc1e7f5c4b722360d7f6c3"
            },
            "downloads": -1,
            "filename": "hookee-2.3.12.tar.gz",
            "has_sig": false,
            "md5_digest": "939540fc094a9a03a39664f9170707d8",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.9",
            "size": 27133,
            "upload_time": "2025-07-10T12:25:41",
            "upload_time_iso_8601": "2025-07-10T12:25:41.387828Z",
            "url": "https://files.pythonhosted.org/packages/f3/cb/a3410b33b86f6ca72ada4fa7fcdc83601441a5cee43b26c8aff320cfac01/hookee-2.3.12.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-07-10 12:25:41",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "alexdlaird",
    "github_project": "hookee",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "hookee"
}
        
Elapsed time: 0.56551s