-
Couldn't load subscription status.
- Fork 0
Installation
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 githubauthlibFor 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.9 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 libsecretNo 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, TokenNotFoundError, InvalidTokenError
try:
token = get_github_token()
print("Token retrieved successfully!")
print(f"Token type: {token[:4]}_...")
except TokenNotFoundError:
print("No token found in system keychain")
except InvalidTokenError:
print("Invalid token format detected")
except Exception as e:
print(f"Error: {e}")For development, you'll need additional dependencies:
# Install development dependencies
pip install -r requirements.txtIf 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