Paper - Pytorch
Project description
Swarms Tools
Welcome to Swarms Tools, the ultimate package for integrating cutting-edge APIs into Python functions with seamless multi-agent system compatibility. Designed for enterprises at the forefront of innovation, Swarms Tools is your key to simplifying complexity and unlocking operational excellence.
๐ Features
- Unified API Integration: Ready-to-use Python functions for financial data, social media, IoT, and more.
- Enterprise-Grade Design: Comprehensive type hints, structured outputs, and robust documentation.
- Agent-Ready Framework: Optimized for seamless integration into Swarms' multi-agent orchestration systems.
- Expandable Architecture: Easily extend functionality with a standardized schema for new tools.
๐ง Installation
pip3 install -U swarms-tools
๐ Directory Structure
swarms-tools/
โโโ swarms_tools/
โ โโโ financial_data/
โ โ โโโ htx_tool.py
โ โ โโโ eodh_api.py
โ โ โโโ coingecko_tool.py
โ โโโ social_media/
โ โ โโโ telegram_tool.py
โ โโโ utilities/
โ โ โโโ logging.py
โโโ tests/
โ โโโ test_financial_data.py
โ โโโ test_social_media.py
โโโ README.md
๐ผ Use Cases
Financial Data Retrieval
Enable precise and actionable financial insights:
Example 1: Fetch Historical Data
from swarms_tools.financial_data.htx_tool import fetch_htx_data
# Fetch historical trading data for "Swarms Corporation"
response = fetch_htx_data("swarms")
print(response)
Example 2: Stock News Analysis
from swarms_tools.financial_data.eodh_api import fetch_stock_news
# Retrieve latest stock news for Apple
news = fetch_stock_news("AAPL")
print(news)
Example 3: Cryptocurrency Metrics
from swarms_tools.financial_data.coingecko_tool import coin_gecko_coin_api
# Fetch live data for Bitcoin
crypto_data = coin_gecko_coin_api("bitcoin")
print(crypto_data)
Social Media Automation
Streamline communication and engagement:
Example: Telegram Bot Messaging
from swarms_tools.social_media.telegram_tool import telegram_dm_or_tag_api
def send_alert(response: str):
telegram_dm_or_tag_api(response)
# Send a message to a user or group
send_alert("Mission-critical update from Swarms.")
๐งฉ Standardized Schema
Every tool in Swarms Tools adheres to a strict schema for maintainability and interoperability:
Schema Template
-
Functionality:
- Encapsulate API logic into a modular, reusable function.
-
Typing:
- Leverage Python type hints for input validation and clarity.
Example:
def fetch_data(symbol: str, date_range: str) -> str: """ Fetch financial data for a given symbol and date range. Args: symbol (str): Ticker symbol of the asset. date_range (str): Timeframe for the data (e.g., '1d', '1m', '1y'). Returns: dict: A dictionary containing financial metrics. """ pass
-
Documentation:
- Include detailed docstrings with parameter explanations and usage examples.
-
Output Standardization:
- Ensure consistent outputs (e.g., strings) for easy downstream agent integration.
-
API-Key Management:
- All API keys must be fetched with
os.getenv("YOUR_KEY")
- All API keys must be fetched with
๐ Documentation
Comprehensive documentation is available to guide developers and enterprises. Visit our official docs for detailed API references, usage examples, and best practices.
๐ Contributing
We welcome contributions from the global developer community. To contribute:
- Fork the Repository: Start by forking the repository.
- Create a Feature Branch: Use a descriptive branch name:
feature/add-new-tool. - Commit Your Changes: Write meaningful commit messages.
- Submit a Pull Request: Open a pull request for review.
๐ก๏ธ License
This project is licensed under the MIT License. See the LICENSE file for details.
๐ Join the Future
Explore the limitless possibilities of agent-based systems. Together, we can build a smarter, faster, and more interconnected world.
Visit us: Swarms Corporation
Follow us: Twitter
"The future belongs to those who dare to automate it."
โ The Swarms Corporation
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 swarms_tools-0.0.3.tar.gz.
File metadata
- Download URL: swarms_tools-0.0.3.tar.gz
- Upload date:
- Size: 14.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.8 Darwin/23.3.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3b38594f1eac582e91eedaac55a750e5730e2ece0c2dcfc799204e40bedbbeec
|
|
| MD5 |
01619e2d520cce65aaff77d72bcbc825
|
|
| BLAKE2b-256 |
de04e30888a2a49abe4e7b86fd23b549ee0fd3d96a5bb337bd98362abe9a5729
|
File details
Details for the file swarms_tools-0.0.3-py3-none-any.whl.
File metadata
- Download URL: swarms_tools-0.0.3-py3-none-any.whl
- Upload date:
- Size: 16.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.8 Darwin/23.3.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c132990932afd3a139f4a3b9fb9c33ffa77c48003f450fdd13365ac5c4c644c7
|
|
| MD5 |
13f197ad5e12b2cabd7395677c71ff78
|
|
| BLAKE2b-256 |
f5cffbbf6e6f17afad953cc2001652093b38a2cc5a0559dd844f9928b13fad0c
|