Skip to main content

🛠️ KitHub 🛠️

KitHub Logo

PyPI version License

KitHub is a powerful framework for creating and managing tool-based APIs. It integrates seamlessly with LangChain tools and provides a simple interface for exposing these tools as API endpoints.

✨ Features

  • 🔧 Easy integration with LangChain tools
  • 🚀 Rapid API development with FastAPI
  • 🔒 Built-in input validation and error handling
  • 📚 Automatic OpenAPI (Swagger) documentation
  • 🌐 CORS support out of the box
  • 🧰 Modular design with support for multiple tool kits

🚀 Quick Start

Installation

pip install kithub

Basic Usage

from kithub import create_kit, create_kithub
from langchain_core.tools import tool

@tool
def example_tool(x: int, y: int):
    """Add two numbers together."""
    return x + y

# Create a kit with your tools
kit = create_kit(tools=[example_tool], prefix="/v1")

# Create the KitHub app
app = create_kithub([kit])

# Run the app
if __name__ == "__main__":
    import uvicorn
    uvicorn.run(app, host="0.0.0.0", port=8000)

📖 Documentation

For full documentation, visit kithub.readthedocs.io.

🧪 Running Tests

pytest tests/

🤝 Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.

🙏 Acknowledgements

  • FastAPI for the awesome web framework
  • LangChain for the powerful tool abstractions

Made with ❤️ by Uria Franko

Metadata

Release files for kithub 0.1.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 kithub 0.1.1
File Size Uploaded
kithub-0.1.1.tar.gz 5.0 kB Details

Built distribution (wheel)

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

Total release size: 9.5 kB

Release files / kithub-0.1.1.tar.gz

Download URL kithub-0.1.1.tar.gz
Size 5.0 kB
Tags Source
SHA-256 checksum
How to use checksums
803e5b784fae98b06fc1c732f085e75f255120261142ec141965792891f8f0a3
BLAKE2b-256 checksum
How to use checksums
c70609e7ab6eea650239e6d61196f21be43416bb29da6ad12e668310dbee0776
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.2.2 CPython/3.9.13 Darwin/23.4.0

Release files / kithub-0.1.1-py3-none-any.whl

Download URL kithub-0.1.1-py3-none-any.whl
Size 4.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7f3c25f315fce2f3c3dbe980f994a93abfb6ff56487e406a45e123cb3150d543
BLAKE2b-256 checksum
How to use checksums
e0a9ca8a84cec1c3fe5b81adaa46264c05188fdce7811b0fff84b780b2e16c5d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.2.2 CPython/3.9.13 Darwin/23.4.0

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

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