A module for authenticating Gmail API access.
Project description
Gmail API Authentication Module
The gmail_api_auth module serves as the foundation of the Gmail Label Email Processor toolkit, providing secure authentication with the Gmail API. This module handles the OAuth2 flow, allowing other components of the toolkit to access and manipulate Gmail data under user consent.
Features
- Implements OAuth2 authentication flow for Gmail API.
- Securely manages tokens, including token refresh.
- Facilitates seamless integration with Gmail API for email processing tasks.
Installation
Ensure you have Python 3.6 or later installed on your system. This module is part of the Gmail Label Email Processor toolkit,
Setup
Before using the gmail_api_auth module, you need to create a project in the Google Developer Console, enable the Gmail API, and obtain your credentials.json file. Follow these steps:
Visit the Google Developer Console. Create a new project. Search for the Gmail API and enable it. Go to the Credentials page, create OAuth client ID credentials, and download the credentials.json file. Place the credentials.json file in the root directory of the cloned repository.
Usage
The gmail_api_auth module is used internally by other components of the Gmail Label Email Processor toolkit. However, you can directly utilize it for testing or extending the toolkit:
from gmail_api_auth import authenticate_gmail_api
# Authenticate and get the Gmail API service object
service = authenticate_gmail_api()
# Now you can use the service object to make Gmail API calls
Contributing
Contributions to the Gmail API Authentication Module or any part of the Gmail Label Email Processor toolkit are welcome.
License
This project is licensed under the MIT License - see the LICENSE file for details.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file gmail-api-auth-0.1.3.tar.gz.
File metadata
- Download URL: gmail-api-auth-0.1.3.tar.gz
- Upload date:
- Size: 2.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
930a9ae3af6b9f7010261d13fd98adc5c24ba6b58d0a4c09ed33bd9e222d5eb6
|
|
| MD5 |
a2b5865dbc01831ba2813bc0e4e77121
|
|
| BLAKE2b-256 |
1887f1fcd7d0070d88cb0b6749ccced8d4a4d9cd635496492fb97f8667810393
|
File details
Details for the file gmail_api_auth-0.1.3-py3-none-any.whl.
File metadata
- Download URL: gmail_api_auth-0.1.3-py3-none-any.whl
- Upload date:
- Size: 2.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
74e91d6c2ecd62cdcf7e05d4297fce1173a92da22538bb521b5aa87bf49d882d
|
|
| MD5 |
d51708f785c197ad9e53e981b719a642
|
|
| BLAKE2b-256 |
52c4162a3c4d9e49a81b0b77e2da28606b08b679a77f83b01a8729ebfed8950f
|