Installation
Requirements
Python 3.10 or higher
Internet connection for OAuth authentication
Compatible with Windows, macOS, and Linux
Install from PyPI
The easiest way to install the IDTAP API is using pip:
pip install idtap
This will install the package and all required dependencies:
requests- HTTP client libraryrequests-toolbelt- Additional HTTP utilitiespyhumps- Case conversion utilitieskeyring- Secure token storagecryptography- Encryption for token securityPyJWT- JWT token handlinggoogle-auth-oauthlib- Google OAuth integrationpymongo- MongoDB database access (for advanced features)
Install from Source
To install the latest development version from GitHub:
pip install git+https://github.com/UCSC-IDTAP/Python-API.git
Or clone the repository and install locally:
git clone https://github.com/UCSC-IDTAP/Python-API.git
cd Python-API
pip install -e .
Development Installation
For development, install with optional development dependencies:
pip install idtap[dev]
This includes additional packages for testing and development:
pytest- Testing frameworkresponses- HTTP request mockingblack- Code formattingisort- Import sortingmypy- Type checkingflake8- Code linting
Platform-Specific Notes
Linux
On Linux systems, you may need to install additional packages for secure keyring support:
pip install idtap[linux]
This installs secretstorage for integration with the system keyring.
macOS/Windows
The standard installation works out of the box on macOS and Windows with built-in keyring support.
Verification
To verify your installation, run:
import idtap
print(idtap.__version__)
This should print the installed version number (e.g., 0.1.7).