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 |
+----------------------+-----------------------------+
Release files for wolfsoftware.github-token-validator 0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| wolfsoftware_github_token_validator-0.1.3.tar.gz | 8.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| wolfsoftware.github_token_validator-0.1.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 18.4 kB
Release files / wolfsoftware_github_token_validator-0.1.3.tar.gz
| Download URL | wolfsoftware_github_token_validator-0.1.3.tar.gz |
|---|---|
| Size | 8.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4093960806addb80d69e0fc4e01449239120b1ccf13db44572f098e724e90be2
|
|
BLAKE2b-256 checksum How to use checksums |
e92f7f270b9a97e7b92b7b01395cae87141ffe81bc009d0b69f58be9f232c9d2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.4
|
Release files / wolfsoftware.github_token_validator-0.1.3-py3-none-any.whl
| Download URL | wolfsoftware.github_token_validator-0.1.3-py3-none-any.whl |
|---|---|
| Size | 9.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0e57cb652eabbbd7ebbf3f7709323c1625da67ef1de8c705ef78a90cc8dbb364
|
|
BLAKE2b-256 checksum How to use checksums |
49a8c169c5b739140aa49afe08cb4c35e9dfedd91bf95e203a0054e41377643b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.4
|