linghub — LingHub Python SDK
AI Routing OS + Agent Marketplace の公式 Python クライアントライブラリ。
インストール
pip install linghub
OpenAI / Anthropic / LangChain 統合を含む場合:
pip install "linghub[openai]"
pip install "linghub[anthropic]"
pip install "linghub[all]"
クイックスタート
from linghub import LingHubClient
client = LingHubClient(api_key="pk_xxx")
# ワークフロー実行
result = client.workflows.run("workflow-id", input="テキスト入力")
print(result.output)
# チャット (OpenAI 互換)
response = client.chat.complete(
model="auto",
messages=[{"role": "user", "content": "Hello"}]
)
print(response.content)
OpenAI との統合
import openai
tools = client.workflows.to_openai_tools("workflow-id")
response = openai.chat.completions.create(model="gpt-4o", tools=tools, ...)
Anthropic との統合
import anthropic
tools = client.workflows.to_anthropic_tools("workflow-id")
response = anthropic.messages.create(tools=tools, ...)
LangChain との統合
chain = client.workflows.to_langchain_runnable("workflow-id")
result = chain.invoke({"input": "テキスト"})
ドキュメント
Metadata
Release files for linghub 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| linghub-1.0.0.tar.gz | 7.6 kB | Without provenance | Details for linghub-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| linghub-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for linghub-1.0.0-py3-none-any.whl |
Total release size: 16.7 kB
Release files / linghub-1.0.0.tar.gz
| Download URL | linghub-1.0.0.tar.gz |
|---|---|
| Size | 7.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cf66fcec0bccd8f4223195fd5b9cd0e8d886b3d62f99c379a4f42bdd42bcb55f
|
|
BLAKE2b-256 checksum How to use checksums |
6712a391515a0b4e92b843d0bb8f5169b0271941343c84c16c1e23c32f0a701e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.7
|
Release files / linghub-1.0.0-py3-none-any.whl
| Download URL | linghub-1.0.0-py3-none-any.whl |
|---|---|
| Size | 9.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7fa800fae1c1704101a4c7e692ace2d55fe9feef10d004595e81ffed2c413824
|
|
BLAKE2b-256 checksum How to use checksums |
c808711ff320c1aa43a34bb0db23af4ba7e4f5ac73646bb8527a3f749a881457
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.7
|
Security for linghub 1.0.0
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.