Skip to main content

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.

Project description

🛠️ 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

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

kithub-0.1.1.tar.gz (5.0 kB view details)

Uploaded Source

Built Distribution

kithub-0.1.1-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

Details for the file kithub-0.1.1.tar.gz.

File metadata

  • Download URL: kithub-0.1.1.tar.gz
  • Upload date:
  • Size: 5.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.2 CPython/3.9.13 Darwin/23.4.0

File hashes

Hashes for kithub-0.1.1.tar.gz
Algorithm Hash digest
SHA256 803e5b784fae98b06fc1c732f085e75f255120261142ec141965792891f8f0a3
MD5 aba5d69c992c5ea08661d669e508f44c
BLAKE2b-256 c70609e7ab6eea650239e6d61196f21be43416bb29da6ad12e668310dbee0776

See more details on using hashes here.

File details

Details for the file kithub-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: kithub-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 4.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.2 CPython/3.9.13 Darwin/23.4.0

File hashes

Hashes for kithub-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7f3c25f315fce2f3c3dbe980f994a93abfb6ff56487e406a45e123cb3150d543
MD5 6697082af00eeba3fe8293b697e185c3
BLAKE2b-256 e0a9ca8a84cec1c3fe5b81adaa46264c05188fdce7811b0fff84b780b2e16c5d

See more details on using hashes here.

Supported by

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