-
Couldn't load subscription status.
- Fork 0
Installation Guide
maheshvaikri edited this page Aug 29, 2025
·
1 revision
Creator: Mahesh Vaijainthymala Krishnamoorthy (Mahesh Vaikri)
- Python: 3.8+ (recommended: 3.11+)
- OS: Windows 10/11, macOS 10.15+, Linux (Ubuntu 20.04+)
- Memory: Minimum 4GB RAM (recommended: 8GB+)
- Storage: 500MB free space
MAPLE has minimal dependencies by design:
-
asyncio(Python standard library) -
json(Python standard library) -
threading(Python standard library) -
cryptography(for security features) -
websockets(for broker communication)
# Clone the repository
git clone https://github.com/maheshvaikri-code/maple-oss.git
cd maple-oss
# Create virtual environment
python -m venv maple-env
# Activate virtual environment
# On Windows:
maple-env\Scripts\activate
# On macOS/Linux:
source maple-env/bin/activate
# Install dependencies
pip install -r requirements.txt
# Verify installation
python -c "import maple; print('MAPLE installed successfully!')"# Clone with development branches
git clone https://github.com/maheshvaikri-code/maple-oss.git
cd maple-oss
# Switch to development branch (optional)
git checkout develop
# Install in development mode
pip install -e .
# Install development dependencies
pip install -r requirements-dev.txt
# Run tests to verify
python -m pytest tests/ -v# Pull the latest MAPLE image
docker pull maple/maple-oss:latest
# Run MAPLE container
docker run -p 8080:8080 maple/maple-oss:latest
# Run with custom configuration
docker run -p 8080:8080 -v /path/to/config:/app/config maple/maple-oss:latest# Clone repository
git clone https://github.com/maheshvaikri-code/maple-oss.git
cd maple-oss
# Build Docker image
docker build -t maple-local .
# Run your local build
docker run -p 8080:8080 maple-localCreate a maple_config.json file:
{
"broker": {
"host": "localhost",
"port": 8080,
"protocol": "websocket"
},
"security": {
"authentication": "jwt",
"encryption": "AES256",
"require_links": true
},
"performance": {
"connection_pool_size": 10,
"max_concurrent_requests": 50,
"message_buffer_size": 1000
},
"logging": {
"level": "INFO",
"format": "json",
"file": "maple.log"
}
}# Basic configuration
export MAPLE_BROKER_HOST=localhost
export MAPLE_BROKER_PORT=8080
export MAPLE_LOG_LEVEL=INFO
# Security settings
export MAPLE_SECURITY_KEY=/path/to/security.key
export MAPLE_REQUIRE_AUTHENTICATION=true
# Performance tuning
export MAPLE_MAX_AGENTS=1000
export MAPLE_MESSAGE_TIMEOUT=30# Test core functionality
python -m maple.tests.test_core
# Test message system
python -m maple.tests.test_messages
# Run all tests (this should show 32/32 passed)
python -m pytest tests/ -v --tb=short# test_installation.py
from maple import Agent, Message, Config, Priority
def test_basic_functionality():
# Create test configuration
config = Config(
agent_id="test_agent",
broker_url="localhost:8080"
)
# Create agent
agent = Agent(config)
# Test message creation
message = Message(
message_type="TEST",
priority=Priority.HIGH,
payload={"test": "data"}
)
print("β
Basic functionality verified!")
return True
if __name__ == "__main__":
test_basic_functionality()# Install Python from python.org (3.11+ recommended)
# Open PowerShell as Administrator
# Install Git
winget install Git.Git
# Clone and setup
git clone https://github.com/maheshvaikri-code/maple-oss.git
cd maple-oss
python -m venv maple-env
.\maple-env\Scripts\Activate.ps1
pip install -r requirements.txt
# Add to PATH (optional)
$env:PATH += ";C:\path\to\maple-oss"# Install Homebrew (if not already installed)
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
# Install Python and Git
brew install python@3.11 git
# Clone and setup
git clone https://github.com/maheshvaikri-code/maple-oss.git
cd maple-oss
python3.11 -m venv maple-env
source maple-env/bin/activate
pip install -r requirements.txt
# Add to shell profile (optional)
echo 'export PATH="/path/to/maple-oss:$PATH"' >> ~/.zshrc
source ~/.zshrc# Update package lists
sudo apt update
# Install dependencies
sudo apt install python3.11 python3.11-venv python3-pip git
# Clone and setup
git clone https://github.com/maheshvaikri-code/maple-oss.git
cd maple-oss
python3.11 -m venv maple-env
source maple-env/bin/activate
pip install -r requirements.txt
# Install system-wide (optional)
sudo pip install -e .{
"performance": {
"connection_pool_size": 50,
"max_concurrent_requests": 200,
"message_buffer_size": 10000,
"enable_compression": true,
"batch_processing": true,
"async_mode": true
}
}# maple_config.py
import maple
# Configure for high-performance
maple.configure({
'memory_limit': '4GB',
'gc_threshold': 10000,
'message_cache_size': 50000,
'enable_memory_profiling': True
})ImportError: No module named 'maple'Solution:
# Ensure virtual environment is activated
source maple-env/bin/activate # Linux/macOS
# or
maple-env\Scripts\activate # Windows
# Reinstall if necessary
pip install -e .ConnectionError: Unable to connect to broker at localhost:8080Solution:
# Check if broker is running
netstat -an | grep 8080
# Start broker manually
python -m maple.broker --host localhost --port 8080PermissionError: [Errno 13] Permission deniedSolution:
# Fix file permissions
chmod +x maple-oss/bin/*
chmod 755 maple-oss/
# Or run as administrator (Windows)If you encounter issues:
-
Check the logs:
tail -f maple.log -
Run diagnostics:
python -m maple.diagnostics - Search existing issues: [GitHub Issues](https://github.com/maheshvaikri-code/maple-oss/issues)
- Ask the community: [Discord](https://discord.gg/maple) or [Discussions](https://github.com/maheshvaikri-code/maple-oss/discussions)
Once installed, you should see:
β
MAPLE Core: Ready
β
Message System: Active
β
Security Layer: Enabled
β
Broker Connection: Established
β
All Tests: 32/32 Passed
π MAPLE is ready to use!Next Steps:
- π [Quick Start Tutorial](Quick-Start-Tutorial) - Build your first agent
- ποΈ [Architecture Overview](Architecture-Overview) - Understand how MAPLE works
- π [API Reference](API-Reference) - Explore all features
- π― [Examples](Examples) - See MAPLE in action
Ready to revolutionize multi-agent communication?
[Start Building β](Quick-Start-Tutorial)
Copyright (C) 2025 Mahesh Vaijainthymala Krishnamoorthy (Mahesh Vaikri) License AGPL 3.0