Copilot Authentication: copilot-auth
Prerequisite
- python>=3.13
- requests
pip install requests
Installation
pip install copilot-auth
Getting started
Steps to fetch copilot github token :
- Fetch Github Access token using device flow
- Fetch Copilot Github token using Github Access token
import copilot_auth as ca
# Custom token handler to process the token
def token_handler(token):
print(token)
# Fetch the github access token
ca.authenticate_github_access_token([token_handler])
# Fetch the copilot github token using the github access token
ca.authenticate_copilot_token([token_handler])
Metadata
Release files for copilot-auth 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| copilot_auth-0.1.2.tar.gz | 4.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| copilot_auth-0.1.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.4 kB
Release files / copilot_auth-0.1.2.tar.gz
| Download URL | copilot_auth-0.1.2.tar.gz |
|---|---|
| Size | 4.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
10f477b496d21ffaba2735af77ebe367b2e6ad2bf316aa34045624fb3cda33bc
|
|
BLAKE2b-256 checksum How to use checksums |
2d1abf5848aa7d593daa55fbe25c048bf45b06cfee6828867d55fee13458e3e4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Release files / copilot_auth-0.1.2-py3-none-any.whl
| Download URL | copilot_auth-0.1.2-py3-none-any.whl |
|---|---|
| Size | 4.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
96a09c9349b2497d38443d8887b7e48c40d08320031fbfa845046fd6fc29d488
|
|
BLAKE2b-256 checksum How to use checksums |
295a819c68a2663b288e64b29dd417b453ce982da12213a46f5238261a21ac76
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|