Skip to main content

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


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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

outhook-0.0.1-py3-none-any.whl (2.2 kB view details)

Uploaded Python 3

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

Hashes for outhook-0.0.1.tar.gz
Algorithm Hash digest
SHA256 1d4518848d19f904d9557e5d7b7863332ae6f67cd7fa90297b71a987aed81c19
MD5 db5c83a32fffc59da454b45d0a4900d6
BLAKE2b-256 695c0654a56b83da5d7454a66c21141175f23ef03634618925da27386483bea9

See more details on using hashes here.

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

Hashes for outhook-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f4c9039d7e90e5d364e0be087c073740d9f21b4197919b8551dec414c3bfa5be
MD5 b6d5fe4a83bb84136ed659ce6764a594
BLAKE2b-256 c7bf6405a4386ff5761978691420a8070aaa7ff13b9b5f140265c595ee8ea97e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page