A tool to validate GitHub Tokens
Project description
Overview
The GitHub Token Validator is a command-line tool that validates a GitHub personal access token and displays its associated information, such as token scopes, rate limits, and the time remaining until the rate limit reset. This tool helps users to easily check the status and details of their GitHub tokens.
Features
- Validate GitHub personal access tokens.
- Display token scopes and rate limit information.
- Show time remaining until the rate limit reset.
- Handle various error scenarios gracefully.
Installation
pip install wolfsoftware.github-token-validator
Usage
To run the GitHub Token Validator, use the following command:
gtv [OPTIONS]
Command-Line Options
-h, --help
: Show the help message and exit.-v, --version
: Show the program's version number and exit.-t, --token TOKEN
: Specify the GitHub personal access token. (required)-T, --timeout TIMEOUT
: Specify the request timeout in seconds. (default: 10)
Example Output
+----------------------+-----------------------------+
| Name | Value |
+----------------------+-----------------------------+
| Token Scope | read:org, repo, workflow |
| Rate Limit | 5000 |
| Rate Limit Used | 717 |
| Rate Limit Remaining | 4283 |
| Time Till Reset | 0 hour, 38 minute, 9 second |
+----------------------+-----------------------------+
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for wolfsoftware_github_token_validator-0.1.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 002799cf4b3a532720156e599f9ae58c207bab0b80ba81f1f7e5386108ea2cf6 |
|
MD5 | 72e4e45028e3d895e08b75ac92476733 |
|
BLAKE2b-256 | 268935d3c8fc1fb5da990bec7489a285639ef44bec14acf072e2d115f7b320c5 |
Close
Hashes for wolfsoftware.github_token_validator-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 607be7820bb319977c934cd0a8bdb9f82a7e9a5df5490ad53af402e0d7e24013 |
|
MD5 | 2517e5daeddbf0319e38157726c9bbb3 |
|
BLAKE2b-256 | 4ddbdf4589ece229dbaa76f85e7f32d9a81bf50deea18e681b43b644ce765252 |