A modular Python framework for AI agents and LLM interactions
Project description
Flotorch Python
A modular Python framework for AI agents and LLM interactions with support for multiple AI frameworks.
Features
- Modular Design: Install only what you need
- SDK Core: Foundation for all AI interactions
- ADK Integration: Google Agent Development Kit support
- Future Modules: CrewAI, AutoGen, LangGraph support (coming soon)
- Flexible Dependencies: Choose your installation level
Installation
Option 1: Install everything (Recommended)
# Install all modules and dependencies
pip install flotorch
Option 2: Install specific modules only
# Install only SDK (core functionality)
pip install flotorch[sdk]
# Install SDK + ADK (Google Agent Development Kit)
pip install flotorch[adk]
Option 3: Development installation
# Install in development mode with all dependencies
pip install -e .
# Install with development tools
pip install -e .[dev]
Option 4: Beta/Pre-release installation
# Install latest beta version
pip install --pre flotorch
# Install specific beta version
pip install flotorch==0.1.0b1
# Install beta with pre-release flag
pip install --pre flotorch==0.1.0b1
# Install beta with ADK
pip install --pre flotorch[adk]
# Install specific beta version with ADK
pip install --pre flotorch[adk]==0.1.0b1
# Install beta with SDK only
pip install --pre flotorch[sdk]
# Install specific beta version with SDK
pip install --pre flotorch[sdk]==0.1.0b1
Note: The --pre flag is required to install beta/pre-release versions. Without it, pip will only install stable releases.
Module Dependencies
SDK (Core) - Always included
httpx>=0.24- HTTP clientpydantic>=1.10- Data validationopenai>=1.0.0- OpenAI API client
ADK Module
- Requires: SDK dependencies
- Adds:
google-adk>=1.5.0
Development Tools
build>=0.10.0- Package buildingtwine>=4.0.0- PyPI uploadpytest>=7.0.0- Testingblack>=23.0.0- Code formattingflake8>=6.0.0- Lintingmypy>=1.0.0- Type checking
Project Structure
flotorch/
├── __init__.py
├── sdk/ # Core SDK functionality
│ ├── __init__.py
│ ├── llm.py # LLM client
│ └── utils/ # Shared utilities
├── adk/ # Google Agent Development Kit
│ ├── __init__.py
│ ├── agent.py # ADK agent wrapper
│ └── llm.py # ADK LLM integration
└── utils/ # Shared utilities
├── http_utils.py
├── llm_utils.py
├── logging_utils.py
└── memory_utils.py
Development
Easy Building with Makefile
The easiest way to build and manage your package is using the provided Makefile:
Direct Version Specification (Recommended)
# Build with specific version
make build VERSION=0.1.0
make build-beta VERSION=0.1.0b1
make build-prod VERSION=0.1.0
# Test with specific version
make test VERSION=0.1.0
# Publish with specific version
make publish-test VERSION=0.1.0b1
make publish-prod VERSION=0.1.0
# Full workflow with specific version
make all VERSION=0.1.0b1
Interactive Commands (prompts for version)
# Interactive builds (if no VERSION specified)
make build # Prompts: "Enter version (e.g., 0.1.0):"
make build-beta # Prompts: "Enter beta version (e.g., 0.1.0b1):"
make build-prod # Prompts: "Enter production version (e.g., 0.1.0):"
# Interactive testing and publishing
make test # Prompts: "Enter version to test (e.g., 0.1.0):"
make publish-test # Prompts: "Enter version to publish (e.g., 0.1.0b1):"
make publish-prod # Prompts: "Enter version to publish (e.g., 0.1.0):"
Quick Commands (pre-defined versions)
# Quick development builds
make quick-build # Builds version 0.1.0
make quick-test # Tests version 0.1.0
make quick-beta # Builds version 0.1.0b1
# Quick publishing
make quick-publish-test # Publishes 0.1.0b1 to TestPyPI
make quick-publish # Publishes 0.1.0 to PyPI
Development Setup
# Set up development environment
make install # Install in development mode
make install-dev # Install with development dependencies
make dev-setup # Complete development setup and test
# Other useful commands
make help # Show all available commands
make clean # Clean build artifacts
Manual Building (Alternative)
If you prefer to use the build script directly:
# Build with specific version
python build.py --version 0.1.0 --build
# Build beta version
python build.py --version 0.1.0b1 --build
Testing
# Test installation
python build.py --version 0.1.0 --test
# Test specific module installations
python -c "from flotorch.sdk.llm import FlotorchLLM; print('SDK works!')"
python -c "from flotorch.adk.agent import FlotorchADKAgent; print('ADK works!')"
Publishing
# Publish to TestPyPI
python build.py --version 0.1.0b1 --publish-test
# Publish to PyPI
python build.py --version 0.1.0 --publish
Contributing
- Fork the repository
- Create a feature branch
- Make your changes
- Add tests
- Submit a pull request
License
MIT License - see LICENSE file for details.
Support
- Issues: GitHub Issues
- Documentation: docs.flotorch.com
- Discussions: GitHub Discussions
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file flotorch-1.1.0b1.tar.gz.
File metadata
- Download URL: flotorch-1.1.0b1.tar.gz
- Upload date:
- Size: 110.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e69d69627b8b276e632506c6bff5e4b4d120db830cd52b505f8f05a5002fdb77
|
|
| MD5 |
a233f2d5749dab974a4c1b3791f7c460
|
|
| BLAKE2b-256 |
f4e311997aab1280a9e20dc8a276b193c3b5ced7bd8a0299669a3b0bf4d2c577
|
File details
Details for the file flotorch-1.1.0b1-py3-none-any.whl.
File metadata
- Download URL: flotorch-1.1.0b1-py3-none-any.whl
- Upload date:
- Size: 135.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
645d99b5b37dc678ca25b54cd92c8c6a984993fce3ff37d7f828fb752788534d
|
|
| MD5 |
ec8764da5b5bb1676f14e413cd6265b7
|
|
| BLAKE2b-256 |
cd5709aeeaafd4eaf04c871e9e11fd89038c3bdb5f667c94e627ca1c03453c59
|