ghscard
raw JSON → 0.5.3 verified Sat May 09 auth: no python maintenance
ghscard generates interactive GitHub user/repository/organization cards for static web pages. Current version 0.5.3, supports Python >=3.5. Maintenance mode with infrequent releases.
pip install ghscard Common errors
error ModuleNotFoundError: No module named 'ghscard' ↓
cause ghscard not installed or installed in wrong environment.
fix
Run: pip install ghscard
error Could not find a GitHub token. Set GITHUB_TOKEN environment variable or pass --token. ↓
cause GitHub API token not provided.
fix
Set environment variable: export GITHUB_TOKEN='your_token'
Warnings
deprecated Python 2 support dropped in v0.4.0; ghscard may still work on Python 2 but no longer tested. ↓
fix Use Python 3.5+
gotcha GITHUB_TOKEN environment variable is required for higher API rate limits; without it, anonymous requests may fail after a few calls. ↓
fix Set GITHUB_TOKEN=your_token before running the CLI.
breaking Removed 'dev' extras_require in v0.5.0; installing dev dependencies now requires specifying extras manually. ↓
fix Use pip install ghscard[dev] if dev extras are needed (but they were removed). Check setup.py for alternatives.
Imports
- ghscard
import ghscard
Quickstart
import ghscard
# CLI usage: python -m ghscard --help
# Generate card HTML for a user:
# python -m ghscard user thombashi --output card.html