Skip to main content

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.

Metadata

Release files for gmail-api-auth 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for gmail-api-auth 0.1.3
File Size Uploaded Provenance Actions
gmail-api-auth-0.1.3.tar.gz 2.1 kB Without provenance Details for gmail-api-auth-0.1.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for gmail-api-auth 0.1.3
File Interpreter ABI Platform Actions
gmail_api_auth-0.1.3-py3-none-any.whl Python 3 none any Details for gmail_api_auth-0.1.3-py3-none-any.whl

Total release size: 4.2 kB

Release files / gmail-api-auth-0.1.3.tar.gz

Download URL gmail-api-auth-0.1.3.tar.gz
Size 2.1 kB
Tags Source
SHA-256 checksum
How to use checksums
930a9ae3af6b9f7010261d13fd98adc5c24ba6b58d0a4c09ed33bd9e222d5eb6
BLAKE2b-256 checksum
How to use checksums
1887f1fcd7d0070d88cb0b6749ccced8d4a4d9cd635496492fb97f8667810393
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.11.3

Release files / gmail_api_auth-0.1.3-py3-none-any.whl

Download URL gmail_api_auth-0.1.3-py3-none-any.whl
Size 2.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
74e91d6c2ecd62cdcf7e05d4297fce1173a92da22538bb521b5aa87bf49d882d
BLAKE2b-256 checksum
How to use checksums
52c4162a3c4d9e49a81b0b77e2da28606b08b679a77f83b01a8729ebfed8950f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.11.3

Security for gmail-api-auth 0.1.3

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