Skip to main content

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

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)

Source distribution for copilot-auth 0.1.2
File Size Uploaded Provenance Actions
copilot_auth-0.1.2.tar.gz 4.1 kB Without provenance Details for copilot_auth-0.1.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for copilot-auth 0.1.2
File Interpreter ABI Platform Actions
copilot_auth-0.1.2-py3-none-any.whl Python 3 none any Details for copilot_auth-0.1.2-py3-none-any.whl

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

Security for copilot-auth 0.1.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page