Security News
Introducing the Socket Python SDK
The initial version of the Socket Python SDK is now on PyPI, enabling developers to more easily interact with the Socket REST API in Python projects.
A dummy/mocking server to inspect incoming HTTP connections. Use it to test/debug Webhooks. Provides nice console logging + a dump of every request as a file.
$ docker run -it -p 5555:5555 -v $(pwd)/logs:/app santiagobasulto/hyper
Explanation:
-p P1:5555
, P1
is the local port in your host.-v YOUR_PATH:/app
, YOUR_PATH
is a volume in your file system to store the logs of the requests.Logs names have the convention METHOD.PATH.TIMESTAMP.request.json
and METHOD.PATH.TIMESTAMP.body.EXTENSION
(if a body is sent). For example, POST.some.path.1617889344.request.json
and POST.some.path.1617889344.body.json
If you don't want to store the logs, don't pass a -v
option.
Using pip
:
$ pip install hyper-inspector
Using pipx
:
$ pipx install hyper-inspector
$ hyper --help
usage: http_inspector [-h] [-r RESPONSE] [-f [ENABLE_FILE_LOGGING]] [-d LOGGING_DIRECTORY] [--log-body [LOG_BODY]] [--ip IP] [--port PORT]
Inspect and debug HTTP requests
optional arguments:
-h, --help
Show this help message and exit
-r, --response [default 200]
Default response for every incoming request
-f, --enable-file-logging [default True]
Enable file logging
-d, --logging-directory [default .]
Directory path to store logs
--log-body [default True]
Should it log the whole body to the console.
--ip [default '']
IP Addr to serve
--port [default 555]
Server Port to listen to
FAQs
A simple HTTP inspector to debug webhooks and other incoming requests
We found that hyper-inspector demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The initial version of the Socket Python SDK is now on PyPI, enabling developers to more easily interact with the Socket REST API in Python projects.
Security News
Floating dependency ranges in npm can introduce instability and security risks into your project by allowing unverified or incompatible versions to be installed automatically, leading to unpredictable behavior and potential conflicts.
Security News
A new Rust RFC proposes "Trusted Publishing" for Crates.io, introducing short-lived access tokens via OIDC to improve security and reduce risks associated with long-lived API tokens.