debouncer 0.0.8
Debouncer is a proxy that debounce requests.
Requires Python: >=3.7,<4.0

# Debouncer

`Debouncer` is a proxy that debounce requests.

[![](https://mermaid.ink/svg/eyJjb2RlIjoic3RhdGVEaWFncmFtLXYyXG4gICAgc3RhdGUgXCJSZWNlaXZlZCBhIHJlcXVlc3RcIiBhcyByZWNlaXZlZFxuXG4gICAgWypdIC0tPiByZWNlaXZlZFxuXG4gICAgc3RhdGUgaWZfd2FpdGluZyA8PGNob2ljZT4-XG4gICAgc3RhdGUgXCJEaXNwYXRjaGluZyB0aGUgcmVxdWVzdFwiIGFzIGRpc3BhdGNoaW5nXG4gICAgc3RhdGUgXCJJbmdlc3RpbmcgdGhlIHJlcXVlc3RcIiBhcyBpbmdlc3RpbmdcblxuICAgIHJlY2VpdmVkIC0tPiBpZl93YWl0aW5nOiBJcyBhIHJlcXVlc3QgYWxyZWFkeSB3YWl0aW5nID9cbiAgICBpZl93YWl0aW5nIC0tPiBkaXNwYXRjaGluZzogTm9cbiAgICBpZl93YWl0aW5nIC0tPiBpbmdlc3Rpbmc6IFllc1xuXG4gICAgc3RhdGUgaWZfbG9ja2VkIDw8Y2hvaWNlPj5cbiAgICBzdGF0ZSBcIklnbm9yaW5nXCIgYXMgaWdub3JpbmdcbiAgICBzdGF0ZSBcIk1hcmsgYXMgcmVkaXNwYXRjaGFibGVcIiBhcyBtYXJrX3JlZGlzcGF0Y2hcblxuICAgIGluZ2VzdGluZyAtLT4gaWZfbG9ja2VkOiBJcyB0aGUgcmVxdWVzdCBsb2NrZWQgP1xuICAgIGlmX2xvY2tlZCAtLT4gaWdub3Jpbmc6IE5vXG4gICAgaWZfbG9ja2VkIC0tPiBtYXJrX3JlZGlzcGF0Y2g6IFllc1xuXG4gICAgc3RhdGUgaWZfdGltZW91dCA8PGNob2ljZT4-XG4gICAgc3RhdGUgXCJXYWl0aW5nIHRpbWVvdXRcIiBhcyB3YWl0aW5nXG4gICAgc3RhdGUgXCJDbG9zaW5nIHRoZSByZXF1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GNob2ljZT4-XG4gICAgc3RhdGUgXCJDbG9zZWQgdGhlIHJlcXVlc3RcIiBhcyBjbG9zZWRcbiAgICBzdGF0ZSBcIlJlZGlzcGF0Y2hpbmcgdGhlIHJlcXVlc3RcIiBhcyByZWRpc3BhdGNoaW5nXG5cbiAgICBjbG9zaW5nIC0tPiBpZl9yZWRpc3BhdGNoYWJsZTogSXMgdGhlIHJlcXVlc3QgbWFya2VkIGFzIHJlZGlzcGF0Y2hhYmxlP1xuICAgIGlmX3JlZGlzcGF0Y2hhYmxlIC0tPiBjbG9zZWQ6IE5vXG4gICAgaWZfcmVkaXNwYXRjaGFibGUgLS0-IHJlZGlzcGF0Y2hpbmc6IFllc1xuICAgIHJlZGlzcGF0Y2hpbmcgLS0-IHJlY2VpdmVkXG5cbiAgICBjbG9zZWQgLS0-IFsqXVxuIiwibWVybWFpZCI6IntcbiAgXCJ0aGVtZVwiOiBcImRlZmF1bHRcIlxufSIsInVwZGF0ZUVkaXRvciI6ZmFsc2UsImF1dG9TeW5jIjp0cnVlLCJ1cGRhdGVEaWFncmFtIjpmYWxzZX0)

## Config

To configure `Debouncer`, you can set the following environment variables:

```sh
# Path to the key/value store, default is "debouncer.db"
STORE_PATH=your-app.db
# Port for the http server, default is "4000"
PORT=8000
# Credentials for a basic auth or token based authentication, default is not set
CREDENTIALS={"username": "password"}
```

# Release

To release a new version, first bump the version number in `pyproject.toml` by hand or by using:

```sh
# poetry version --help
poetry version <patch|minor|major>
```

Make a release:

```sh
make release
```

Finally, push the release commit and tag to publish them to Pypi:

```sh
git push --follow-tags
```