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 Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: copilot_auth-0.1.1-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.13.1

File hashes

Hashes for copilot_auth-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2e6fffec5e3b89b067dd98643f2860086a1024672bddcead036360947ae3f17a
MD5 a209cf91aaa7cd9f9704dd20b77d2556
BLAKE2b-256 f0e1f7cfe213b1dd6781e13233ce1426d07423a6cbaa7687e9a694e8e2cd5e76

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