Swarm Squad: A simulation framework for multi-agent systems.
Project description
✨ Key Features
-
Agent Simulation: Swarm Squad allows you to simulate the behavior of multiple agents in a controlled environment. This is essential for testing how agents interact with each other and their environment.
-
Scalability: It should be able to handle a large number of agents simultaneously. This is important for testing the system's performance under various load conditions.
-
Behavior Specification: Swarm Squad may include a way to define and specify the expected behavior of agents. This can be used to evaluate whether the agents are acting as intended.
-
Environment Modeling: It provides tools for creating and managing the environment in which the agents operate. This could be a physical or virtual space with obstacles, goals, or other entities.
-
Metrics and Analytics: The framework likely offers mechanisms for collecting and analyzing data on agent behavior. This could include metrics like speed, coordination, efficiency, or any other relevant performance indicators.
-
Customization and Extensibility: It should allow users to customize and extend the framework to suit their specific needs. This might involve adding new types of agents, modifying the environment, or defining custom evaluation criteria.
-
Visualization and Reporting: Swarm Squad may include tools for visualizing the simulation in real-time or for generating reports after a simulation run. This helps in understanding and communicating the results.
-
Integration with Other Tools: It may have the capability to integrate with other software or libraries commonly used in multi-agent systems development, such as reinforcement learning libraries, communication protocols, or visualization tools.
-
Support for Various Types of Agents: Swarm Squad should be versatile enough to support different types of agents, such as robots, drones, and autonomous vehicles.
-
Documentation and Support: Proper documentation and support resources are essential for users to effectively utilize the framework.
🚀 Getting Started
Get uv and create a virtual environment.
uv venv --python 3.10
source .venv/bin/activate
uv pip install swarm-squad
To run the application, simply type:
swarm-squad
# or
swarm-squad --help
👨💻 Development Setup
-
Clone the repository and navigate to project folder:
git clone https://github.com/Sang-Buster/Swarm-Squad cd Swarm-Squad
-
Install uv first:
# macOS/Linux curl -LsSf https://astral.sh/uv/install.sh | sh
# Windows powershell -c "irm https://astral.sh/uv/install.ps1 | iex"
-
Create a virtual environment at
Swarm-Squad/.venv/:uv venv --python 3.10
-
Activate the virtual environment:
# macOS/Linux source .venv/bin/activate
# Windows .venv\Scripts\activate
-
Install the required packages:
uv pip install -e .
-
Set up environment variables:
# Copy the example environment file cp .env.example .env
- You can get a
MAPBOX_ACCESS_TOKENby signing up at https://www.mapbox.com/ - Update the
OLLAMA_API_URLif your Ollama instance is running on a different address - Update the
DATABASE_PATHif you want to use a custom database file
- You can get a
-
Install ruff and pre-commit:
uv pip install ruff pre-commit
ruffis a super fast Python linter and formatter.pre-commithelps maintain code quality by running automated checks before commits are made.
-
Install git hooks:
pre-commit install --hook-type commit-msg --hook-type pre-commit --hook-type pre-push
These hooks perform different checks at various stages:
commit-msg: Ensures commit messages follow the conventional formatpre-commit: Runs Ruff linting and formatting checks before each commitpre-push: Performs final validation before pushing to remote
-
Code Linting:
ruff check ruff check --fix ruff check --select I ruff check --select I --fix ruff format
-
Run the application:
uv run src/swarm_squad/app.py
📝 File Structure
📂Swarm Squad
┣ 📂src // Source Code
┃ ┗ 📦swarm_squad //
┃ ┃ ┣ 📂assets // Static assets (CSS, images, favicon, etc.)
┃ ┃ ┃ ┣ 📂css // CSS files
┃ ┃ ┃ ┣ 📂js // JavaScript files
┃ ┃ ┃ ┣ 📂models // Model files
┃ ┃ ┃ ┗ 📄favicon.ico // Favicon
┃ ┃ ┣ 📂cli // CLI commands
┃ ┃ ┣ 📂components // Reusable UI components
┃ ┃ ┣ 📂data // Database files
┃ ┃ ┣ 📂pages // Page components and routing
┃ ┃ ┣ 📂scripts // Simulation and algorithm scripts
┃ ┃ ┣ 📂utils // Utility functions and helpers
┃ ┃ ┣ 📂cli // CLI commands
┃ ┃ ┣ 📄app.py // Entry point
┃ ┃ ┗ 📄core.py // Dash app core
┣ 📄.env.example // Template for environment variables
┣ 📄.gitignore // Git ignore patterns (env, cache, database)
┣ 📄.pre-commit-config.yaml // Pre-commit hooks (ruff, commit message)
┣ 📄.pre-commit_msg_template.py // Commit message format validator
┣ 📄.python-version // Python version
┣ 📄LICENSE // MIT License
┣ 📄README.md // Project documentation
┣ 📄pyproject.toml // Project configuration
┗ 📄uv.lock // Lock file
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 swarm_squad-0.1.3.tar.gz.
File metadata
- Download URL: swarm_squad-0.1.3.tar.gz
- Upload date:
- Size: 17.9 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d6cf932decc01d50fc046c09e55728033212971e98a40df937a70526646a7da0
|
|
| MD5 |
e5b58aea97bb767fd76f8b1967b30577
|
|
| BLAKE2b-256 |
a0d1c2689b6dc42350e7c52d185d335c63b2ebc021630eec96bdcbc5b26494d9
|
File details
Details for the file swarm_squad-0.1.3-py3-none-any.whl.
File metadata
- Download URL: swarm_squad-0.1.3-py3-none-any.whl
- Upload date:
- Size: 17.9 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
90edb4e749c182eb66b0d49c0c2620bb5daff4392b428379dfec1c35dce3a9aa
|
|
| MD5 |
6ea81c9fda8adf5f2b81077b9c9df3c3
|
|
| BLAKE2b-256 |
83652c357bd8801b1006f05d1f48effca8e5f19920add854c5874e13a972d132
|