OASIS Web4 Python SDK

Official Python client for the OASIS Web4 API - Decentralized avatar management, karma system, NFTs, and cross-provider data storage.

🐍 Features

  • Type-safe: Full type hints with Pydantic models

  • Pythonic API: Clean, intuitive Python interface

  • Async ready: Support for both sync and async operations

  • Comprehensive: All Web4 API endpoints supported

  • Well-tested: Extensive test coverage

  • Auto-retry: Automatic retry logic for failed requests

🚀 Installation

pip install oasis-web4-client

📖 Quick Start

Basic Usage

from oasis_web4_client import OASISWeb4Client, Config

# Initialize client
config = Config(api_url="http://localhost:5000/api", debug=True)
client = OASISWeb4Client(config)

# Authenticate
result = client.authenticate("holochain")
print(f"Logged in as: {result.result['avatar']['username']}")

# Get karma
karma = client.get_karma("avatar-id")
print(f"Total karma: {karma.result.total}")

With Context Manager

🔑 Authentication

👤 Avatar Management

🏆 Karma System

🎨 NFT Operations

🔌 Provider Management

💬 Messaging

🌐 Social Features

⚙️ Configuration

Environment Variables

🔒 Error Handling

🧪 Testing

📚 Type Hints

Full type hint support:

📄 License

MIT

🤝 Contributing

Contributions are welcome! Please see CONTRIBUTING.mdarrow-up-right.

Last updated