-
Notifications
You must be signed in to change notification settings - Fork 0
Installation
Garot Conklin edited this page Jan 28, 2025
·
1 revision
This guide covers different methods for installing githubauthlib and setting up the required dependencies.
The simplest way to install githubauthlib is via pip:
pip install githubauthlib
For development or to get the latest unreleased features:
# Clone the repository
git clone https://github.com/fleXRPL/githubauthlib.git
# Navigate to the project directory
cd githubauthlib
# Install in development mode
pip install -e .
-
Python 3.6 or higher is required
-
Verify your Python version:
python --version
- Git must be installed and configured with GitHub credentials
- Verify Git installation:
git --version
Install libsecret-tools:
# Ubuntu/Debian
sudo apt-get update
sudo apt-get install libsecret-tools
# Fedora
sudo dnf install libsecret
# Arch Linux
sudo pacman -S libsecret
No additional requirements needed. The library uses the built-in Keychain Access.
No additional requirements needed. The library uses the built-in Credential Manager.
- Check if the package is installed:
pip list | grep githubauthlib
- View package details:
pip show githubauthlib
- Test basic functionality:
from githubauthlib import get_github_token
print(get_github_token()) # Should return your token or None
For development, you'll need additional dependencies:
# Install development dependencies
pip install -r requirements.txt
If you encounter issues during installation:
- Ensure you have the latest pip:
python -m pip install --upgrade pip
-
Check for platform-specific issues:
- Linux: Verify libsecret-tools installation
- macOS: Ensure Keychain Access is working
- Windows: Check Credential Manager access
-
For more detailed troubleshooting, see the Troubleshooting guide.
- Read the Usage Guide to learn how to use the library
- Check the Configuration guide for setup options
- Visit the Development Setup guide if you plan to contribute