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.
Release files for hyvbase 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| hyvbase-0.1.0.tar.gz | 12.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| hyvbase-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 23.5 kB
Release files / hyvbase-0.1.0.tar.gz
| Download URL | hyvbase-0.1.0.tar.gz |
|---|---|
| Size | 12.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0973ee1592f8a932c1e1d041c0cdfc0f6f3a901c63eccf2b4e1a2b98e431233f
|
|
BLAKE2b-256 checksum How to use checksums |
3ad695aa5846591907fd486cc473ebca2a5234385851bcfcdb62b41f3b6776f2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.8.5
|
Release files / hyvbase-0.1.0-py3-none-any.whl
| Download URL | hyvbase-0.1.0-py3-none-any.whl |
|---|---|
| Size | 10.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c8a628492c83b94685369508468607c1319d08e4a626601a29291ff3bc47858b
|
|
BLAKE2b-256 checksum How to use checksums |
8634506f9dedba68e969b2391f997f04e3edb72bc9983cc9331136dbe32c76c9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.8.5
|