Skip to main content

ToolRegistry Hub: Ready-to-Use Tool Collection for LLM Agents — web search, file ops, code execution, and more

Project description

ToolRegistry Hub Documentation

PyPI version Docker Image CI

中文版 | English version

Welcome to the ToolRegistry Hub documentation! This document provides detailed descriptions of all tools in the project.

Ecosystem

Package Description PyPI Docs
toolregistry Core library — tool registration, schema generation, execution PyPI Docs
toolregistry-server Server adapters — expose tools via OpenAPI & MCP PyPI Docs
toolregistry-hub Ready-to-use tools — calculator, web search, file ops, etc. PyPI Docs

📚 Documentation

For detailed documentation, please visit our ReadTheDocs pages:

Tools Overview

ToolRegistry Hub is a Python library that provides various utility tools designed to support common tasks. Here are the main tool categories:

  • Calculator Tools - Provides various mathematical calculation functions
  • Date Time Tools - Handles date, time, and timezone conversions
  • File Operations Tools - Provides file content manipulation functions
  • File System Tools - Provides file system operation functions
  • Web Search Tools - Provides web search functionality
  • Unit Converter Tools - Provides conversions between various units
  • Other Tools - Other utility tools
  • Server Mode - REST API and MCP server
  • Docker Deployment - Docker containerization deployment

For detailed information about each tool category, please refer to the online documentation.

Quick Start

To use ToolRegistry Hub, first install the library:

pip install toolregistry-hub

Then, you can import and use the required tools:

from toolregistry_hub import Calculator, DateTime, FileOps

# Use calculator
result = Calculator.evaluate("2 + 2 * 3")
print(result)  # Output: 8

# Get current time
current_time = DateTime.now()
print(current_time)

Documentation Structure

This documentation is organized by tool categories, with each tool category having its own page that details all tools, methods, and usage examples under that category.

Changelog

Web Fetch Tool — Major Update (PR #140)

Structured return value

fetch_content now returns a structured dict instead of a plain str:

{
  "content": "...",
  "url": "https://example.com",
  "strategy": "readability",
  "quality": "high",
  "content_type": "text/html",
  "cached": false,
  "elapsed_ms": 123,
  "metadata": {"readability_score": 174.3, "content_length": 12345}
}

strategy parameter

A new optional strategy parameter lets you specify the extraction strategy (default: "auto"). Available choices:

Strategy Description
auto Recommended — tries each fallback in order
markdown Cloudflare content negotiation
readability Local readability extraction
soup Local BeautifulSoup fallback
veilrender Remote headless browser (requires VEILRENDER_ENDPOINT)
cdp Self-hosted Chrome DevTools Protocol (requires CDP_ENDPOINT)
jina Jina Reader API (always available; optional JINA_API_KEY for higher rate limits)

Available choices are narrowed at runtime: veilrender and cdp appear only when their respective endpoints are configured.

Updated fallback chain

markdown → readability → soup → veilrender → cdp → jina → local_fallback

VeilRender fallback

VeilRender is a new optional remote headless browser fallback for JS-heavy pages and SPAs. Configure via environment variables:

VEILRENDER_ENDPOINT=https://your-veilrender-instance
VEILRENDER_TOKEN=your_token_here  # optional

Contributing

If you want to contribute to ToolRegistry Hub, please refer to the GitHub repository.

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

toolregistry_hub-0.9.1.tar.gz (208.0 kB view details)

Uploaded Source

Built Distribution

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

toolregistry_hub-0.9.1-py3-none-any.whl (190.4 kB view details)

Uploaded Python 3

File details

Details for the file toolregistry_hub-0.9.1.tar.gz.

File metadata

  • Download URL: toolregistry_hub-0.9.1.tar.gz
  • Upload date:
  • Size: 208.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.20

File hashes

Hashes for toolregistry_hub-0.9.1.tar.gz
Algorithm Hash digest
SHA256 7a6e59781554272f2fc429220258a052c66ff326660cb6de50fba370c7b1f0a5
MD5 6d332a67821518cf4a94d61b16cf810a
BLAKE2b-256 186e74eb19d608be5c9b301cef7f971d6f13f6f48039451a9b6aa4f4e4f5235f

See more details on using hashes here.

File details

Details for the file toolregistry_hub-0.9.1-py3-none-any.whl.

File metadata

File hashes

Hashes for toolregistry_hub-0.9.1-py3-none-any.whl
Algorithm Hash digest
SHA256 31ac39e3c1cc26d492f8885063d92d054db2fc4cfd05593efd7d713af0f738c1
MD5 3e8cf7e9b2e7e793fb2e49ff0715fe28
BLAKE2b-256 b708507866a53e344483d40182d37e3da7340e5c9692b6f95d10cbc877cfb671

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