Skip to main content

Copilot authentication library to get GitHub and Copilot tokens

Project description

Copilot Authentication: copilot-auth

PyPI version License Downloads coverage

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])

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

copilot_auth-0.1.2.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

copilot_auth-0.1.2-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

Details for the file copilot_auth-0.1.2.tar.gz.

File metadata

  • Download URL: copilot_auth-0.1.2.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for copilot_auth-0.1.2.tar.gz
Algorithm Hash digest
SHA256 10f477b496d21ffaba2735af77ebe367b2e6ad2bf316aa34045624fb3cda33bc
MD5 14896b8100282db286a878a4302db47b
BLAKE2b-256 2d1abf5848aa7d593daa55fbe25c048bf45b06cfee6828867d55fee13458e3e4

See more details on using hashes here.

File details

Details for the file copilot_auth-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: copilot_auth-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 4.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for copilot_auth-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 96a09c9349b2497d38443d8887b7e48c40d08320031fbfa845046fd6fc29d488
MD5 0a29d398012dec705ceb52a8164705ed
BLAKE2b-256 295a819c68a2663b288e64b29dd417b453ce982da12213a46f5238261a21ac76

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page