This project is a simple Python script that connects to the GitHub REST API and retrieves the authenticated user's profile information securely using a .env file.
- Connects to GitHub API using Personal Access Token (PAT)
- Safely loads the token from a
.envfile - Fetches and displays the user's GitHub username
- Uses
requestsandpython-dotenvlibraries
- Python 3.7 or higher
requestslibrarypython-dotenvlibrary
Install requirements:
pip install requests python-dotenv