Skip to main content

OutHook

接管程序输出,并且在输出时触发回调。

安装

pipx install outhook

使用

outhook <command> [args]
# 例如 outhook java --version

在当前文件夹下创建一个文件 hook.py 定义一个函数 callback 参数如下

def callback(line: bytes) -> None: ...

line 是输出的一行,bytes 类型。

Metadata

Release files for outhook 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for outhook 0.0.1
File Size Uploaded Provenance
outhook-0.0.1.tar.gz 1.6 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for outhook 0.0.1
File Interpreter ABI Platform
outhook-0.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 3.8 kB

Release files / outhook-0.0.1.tar.gz

Download URL outhook-0.0.1.tar.gz
Size 1.6 kB
Tags Source
SHA-256 checksum
How to use checksums
1d4518848d19f904d9557e5d7b7863332ae6f67cd7fa90297b71a987aed81c19
BLAKE2b-256 checksum
How to use checksums
695c0654a56b83da5d7454a66c21141175f23ef03634618925da27386483bea9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.1.3 CPython/3.13.2 Windows/10

Release files / outhook-0.0.1-py3-none-any.whl

Download URL outhook-0.0.1-py3-none-any.whl
Size 2.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f4c9039d7e90e5d364e0be087c073740d9f21b4197919b8551dec414c3bfa5be
BLAKE2b-256 checksum
How to use checksums
c7bf6405a4386ff5761978691420a8070aaa7ff13b9b5f140265c595ee8ea97e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.1.3 CPython/3.13.2 Windows/10

Security for outhook 0.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page