An intelligent agent framework for StarkNet and social media automation
Project description
HyvBase 🚀
HyvBase is an intelligent agent framework for StarkNet and social media automation. Built with Python, it provides a simple way to create automated trading and social media management solutions.
Features ✨
- StarkNet Integration: Swap tokens and execute transfers via AVNU DEX
- Social Media Management: Twitter and Telegram automation
- Vector Memory: Store and query conversation and transaction history
- Intelligent Agents: GPT-powered agents for natural interaction
Quick Installation 🛠️
pip install hyvbase
Required: Python >=3.8
Basic Example 📝
from hyvbase.main import HyvBase
import asyncio
async def main():
hyv = HyvBase()
# Create a DEX agent
agent = await hyv.create_agent(
agent_type="dex",
name="CryptoTrader",
tools=["starknet", "dex"],
personality_config={
"name": "Alex",
"role": "Crypto Trader",
"traits": ["precise", "helpful"],
"expertise": ["Token Swaps", "Transfers"]
}
)
# Get price quote
quote = await agent.process_command("What's the price of 0.1 ETH in USDC?")
print(quote)
# Execute swap
swap = await agent.process_command("swap 0.1 ETH to USDC")
print(swap)
if __name__ == "__main__":
asyncio.run(main())
Configuration 🔧
Create a .env file:
# StarkNet
STARKNET_PRIVATE_KEY=your_private_key
STARKNET_ACCOUNT=your_account_address
# Social Media
TWITTER_CLIENT_ID=your_client_id
TWITTER_CLIENT_SECRET=your_client_secret
TWITTER_ACCESS_TOKEN=your_access_token
TWITTER_ACCESS_SECRET=your_access_secret
TELEGRAM_BOT_TOKEN=your_bot_token
# OpenAI (for agent intelligence)
OPENAI_API_KEY=your_openai_key
Supported Operations 🔥
StarkNet
- Token swaps via AVNU DEX
- Token transfers
- Price quotes
- Transaction monitoring
Supported tokens: ETH, USDC, USDT, STARK
Social Media
- Twitter: Post tweets, read timeline, engage with mentions
- Telegram: Send messages, manage groups, handle commands
Memory Features
- Store and query chat history
- Track transaction history
- Semantic search capabilities
Documentation 📚
For detailed documentation and examples, check out our Documentation.
Contributing 🤝
We welcome contributions! Please check our Contributing Guidelines.
License 📄
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
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 hyvbase-0.1.0.tar.gz.
File metadata
- Download URL: hyvbase-0.1.0.tar.gz
- Upload date:
- Size: 12.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.8.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0973ee1592f8a932c1e1d041c0cdfc0f6f3a901c63eccf2b4e1a2b98e431233f
|
|
| MD5 |
7736d4aa96699f19f0d9802dfc82faab
|
|
| BLAKE2b-256 |
3ad695aa5846591907fd486cc473ebca2a5234385851bcfcdb62b41f3b6776f2
|
File details
Details for the file hyvbase-0.1.0-py3-none-any.whl.
File metadata
- Download URL: hyvbase-0.1.0-py3-none-any.whl
- Upload date:
- Size: 10.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.8.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c8a628492c83b94685369508468607c1319d08e4a626601a29291ff3bc47858b
|
|
| MD5 |
8f0e8bacba3d5aba087b3b49d1b9fc92
|
|
| BLAKE2b-256 |
8634506f9dedba68e969b2391f997f04e3edb72bc9983cc9331136dbe32c76c9
|