Installation¶
Install the Open To Close API Python client and set up your development environment. This guide covers multiple installation methods and verification steps.
🎯 Installation Methods¶
Standard Installation (Recommended)¶
Install the latest stable version from PyPI using pip:
Development Installation¶
For development work or to get the latest features:
# Install from GitHub
pip install git+https://github.com/theperrygroup/open-to-close.git
# Or clone and install in development mode
git clone https://github.com/theperrygroup/open-to-close.git
cd open-to-close
pip install -e .
Specific Version Installation¶
To install a specific version:
# Install specific version
pip install open-to-close==2.0.7
# Install with version constraints
pip install "open-to-close>=2.0.0,<3.0.0"
🐍 Python Version Requirements¶
Supported Python Versions
📋 The client supports Python 3.8 and higher:
- Python 3.8 ✅
- Python 3.9 ✅
- Python 3.10 ✅
- Python 3.11 ✅
- Python 3.12 ✅
Check Your Python Version¶
# Check Python version
python --version
# Or more detailed version info
python -c "import sys; print(sys.version)"
If you need to upgrade Python, visit python.org for installation instructions.
🔧 Virtual Environment Setup¶
We strongly recommend using a virtual environment to avoid dependency conflicts:
📦 Dependencies¶
The client has minimal dependencies that are automatically installed:
Required Dependencies¶
Package | Version | Purpose |
---|---|---|
requests | >=2.25.0 | HTTP client for API calls |
python-dotenv | >=0.19.0 | Environment variable loading |
Development Dependencies¶
If you're contributing to the project, install development dependencies:
# Install with development dependencies
pip install "open-to-close[dev]"
# Or install from source with dev dependencies
git clone https://github.com/theperrygroup/open-to-close.git
cd open-to-close
pip install -e ".[dev]"
✅ Verify Installation¶
After installation, verify everything is working correctly:
Basic Import Test¶
# Test basic import
try:
from open_to_close import OpenToCloseAPI
print("✅ Import successful!")
except ImportError as e:
print(f"❌ Import failed: {e}")
Version Check¶
# Check installed version
import open_to_close
print(f"Open To Close API Client version: {open_to_close.__version__}")
Dependencies Check¶
# Verify all dependencies are available
try:
import requests
import dotenv
print("✅ All dependencies available")
except ImportError as e:
print(f"❌ Missing dependency: {e}")
Command Line Verification¶
# Check installed packages
pip list | grep open-to-close
# Show package information
pip show open-to-close
🔄 Updating the Client¶
Keep your client up to date with the latest features and bug fixes:
Standard Update¶
Update with Version Constraints¶
# Update within major version
pip install --upgrade "open-to-close>=2.0.0,<3.0.0"
# Update to specific version
pip install --upgrade open-to-close==2.0.7
Check for Updates¶
# Check if updates are available
pip list --outdated | grep open-to-close
# Show current and available versions
pip install open-to-close==
🆘 Troubleshooting Installation¶
Common Issues¶
Permission Errors
If you get permission errors during installation:
SSL Certificate Errors
If you encounter SSL certificate issues:
Network/Proxy Issues
If you're behind a corporate firewall:
Environment Issues¶
Virtual Environment Not Working
If virtual environment activation fails:
Import Path Issues
If imports fail after installation:
Getting Help¶
If you continue to have issues:
- GitHub Issues - Report installation problems
- Python Packaging Guide - General pip and packaging help
- Virtual Environment Guide - Official venv documentation
🚀 Next Steps¶
Now that you have the client installed:
- Set up authentication - Configure your API key
- Try the quick start - Make your first API call
- Explore API documentation - Learn about available operations
📋 Installation Checklist¶
- Python 3.8+ installed and verified
- Virtual environment created and activated
-
open-to-close
package installed via pip - Import test successful
- Dependencies verified
- Ready to configure authentication
Once all items are checked, proceed to Authentication Setup.