No project description provided
Project description
OutHook
接管程序输出,并且在输出时触发回调。
安装
pipx install outhook
使用
outhook <command> [args]
# 例如 outhook java --version
在当前文件夹下创建一个文件 hook.py
定义一个函数 callback 参数如下
def callback(line: bytes) -> None: ...
line 是输出的一行,bytes 类型。
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
outhook-0.0.1.tar.gz
(1.6 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file outhook-0.0.1.tar.gz.
File metadata
- Download URL: outhook-0.0.1.tar.gz
- Upload date:
- Size: 1.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.3 CPython/3.13.2 Windows/10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1d4518848d19f904d9557e5d7b7863332ae6f67cd7fa90297b71a987aed81c19
|
|
| MD5 |
db5c83a32fffc59da454b45d0a4900d6
|
|
| BLAKE2b-256 |
695c0654a56b83da5d7454a66c21141175f23ef03634618925da27386483bea9
|
File details
Details for the file outhook-0.0.1-py3-none-any.whl.
File metadata
- Download URL: outhook-0.0.1-py3-none-any.whl
- Upload date:
- Size: 2.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.3 CPython/3.13.2 Windows/10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f4c9039d7e90e5d364e0be087c073740d9f21b4197919b8551dec414c3bfa5be
|
|
| MD5 |
b6d5fe4a83bb84136ed659ce6764a594
|
|
| BLAKE2b-256 |
c7bf6405a4386ff5761978691420a8070aaa7ff13b9b5f140265c595ee8ea97e
|