Installation
This guide will help you install the Opinion CLOB SDK and its dependencies.
https://pypi.org/project/opinion-clob-sdk/
Requirements
Python Version
- Python 3.8 or higher (tested on Python 3.8 through 3.13) 
Check your Python version:
python --version  # or python3 --versionSystem Requirements
- Operating Systems: Linux, macOS, Windows 
- Network: Internet connection for API access and blockchain RPC 
- Optional: Git (for development installation) 
Installation Methods
Install from PyPI (Recommended)
The simplest way to install the Opinion CLOB SDK is via pip:
pip install opinion_clob_sdkThis will install the latest stable version and all required dependencies.
Dependencies
The SDK automatically installs the following dependencies:
Verify Installation
After installation, verify it works:
import opinion_clob_sdk
# Check version
print(opinion_clob_sdk.__version__)  # Should print: 0.1.0 or higher
# Import main classes
from opinion_clob_sdk import Client
from opinion_clob_sdk.model import TopicType, TopicStatus
print("✓ Opinion CLOB SDK installed successfully!")Or run from command line:
python -c "import opinion_clob_sdk; print('✓ Installed:', opinion_clob_sdk.__version__)"Virtual Environment (Recommended)
It's best practice to use a virtual environment:
Using venv (Built-in)
# Create virtual environment
python3 -m venv venv
# Activate it
source venv/bin/activate  # macOS/Linux
# or
venv\Scripts\activate     # Windows
# Install SDK
pip install opinion_clob_sdk
# When done, deactivate
deactivateUsing conda
# Create environment
conda create -n opinion python=3.11
# Activate it
conda activate opinion
# Install SDK
pip install opinion_clob_sdk
# When done, deactivate
conda deactivateUpgrading
To upgrade to the latest version:
pip install --upgrade opinion_clob_sdkTo upgrade all dependencies as well:
pip install --upgrade --force-reinstall opinion_clob_sdkUninstalling
To remove the SDK:
pip uninstall opinion_clob_sdkNext Steps
Once installed, proceed to:
Having issues? Check the Troubleshooting Guide or FAQ.
Last updated

