Installation¶
Get ESO Logs Python up and running in your environment.
Requirements¶
- Python: 3.8 or higher
- Operating System: Windows, macOS, or Linux
- Dependencies: Automatically installed with the package
Installation Methods¶
PyPI Installation (Recommended)¶
ESO Logs Python is available on PyPI:
Development Installation¶
For contributing or development work, install with development dependencies:
Recommended: Use a virtual environment to avoid dependency conflicts:
Verification¶
Verify your installation by running a simple test:
# test_installation.py
import esologs
from esologs.auth import get_access_token
# Check version
print(f"ESO Logs Python version: {esologs.__version__}")
# Test authentication (requires API credentials)
try:
token = get_access_token()
print("✅ Authentication successful")
except Exception as e:
print(f"❌ Authentication failed: {e}")
print("Make sure to set ESOLOGS_ID and ESOLOGS_SECRET environment variables")
Core Dependencies¶
ESO Logs Python automatically installs these core dependencies:
| Package | Version | Purpose |
|---|---|---|
requests | ≥2.25.0 | HTTP client for authentication |
httpx | ≥0.24.0 | Async HTTP client for API calls |
pydantic | ≥2.0.0 | Data validation and serialization |
ariadne-codegen | ≥0.6.0 | GraphQL code generation |
Development Dependencies¶
When installing with [dev], these additional tools are included:
| Package | Purpose |
|---|---|
pytest | Testing framework |
pytest-asyncio | Async test support |
pytest-cov | Coverage reporting |
black | Code formatting |
isort | Import sorting |
ruff | Fast Python linting |
mypy | Static type checking |
pre-commit | Git hooks for code quality |
Troubleshooting¶
Common Issues¶
Python Version Error¶
Solution: Upgrade to Python 3.8 or higher:
# Check your Python version
python --version
# Install Python 3.8+ from python.org or use pyenv
pyenv install 3.11.0
pyenv global 3.11.0
Permission Errors¶
Solution: Use a virtual environment or --user flag:
# Option 1: Virtual environment (recommended)
python -m venv myenv
source myenv/bin/activate # On Windows: myenv\Scripts\activate
pip install -e .
# Option 2: User installation
pip install --user -e .
Git Not Found¶
Solution: Install Git:
- Windows: Download from git-scm.com
- macOS:
brew install gitor Xcode Command Line Tools - Ubuntu/Debian:
sudo apt-get install git - CentOS/RHEL:
sudo yum install git
Network Issues¶
Solution: Check network connectivity and proxy settings:
# Test connectivity
ping github.com
# Configure pip proxy if needed
pip install --proxy http://user:password@proxy.server:port -e .
Development Setup Issues¶
Pre-commit Hook Failures¶
Import Errors in Development¶
Next Steps¶
Once installation is complete:
- Set up authentication - Configure your ESO Logs API credentials
- Follow the quickstart guide - Make your first API calls
- Explore the API reference - Learn methods and usage patterns
Development Environment
If you plan to contribute to the project, see our development setup guide for additional configuration and testing instructions.
Need Help?
If you encounter issues not covered here, please:
- Search existing issues
- Create a new issue with your system details