Skip to main content

An example project generated by cookiecutter-pywf_open_source.

Project description

Documentation Status https://github.com/MacHu-GWU/pythonic_gmail-project/actions/workflows/main.yml/badge.svg https://codecov.io/gh/MacHu-GWU/pythonic_gmail-project/branch/main/graph/badge.svg https://img.shields.io/pypi/v/pythonic-gmail.svg https://img.shields.io/pypi/l/pythonic-gmail.svg https://img.shields.io/pypi/pyversions/pythonic-gmail.svg https://img.shields.io/badge/✍️_Release_History!--None.svg?style=social&logo=github https://img.shields.io/badge/⭐_Star_me_on_GitHub!--None.svg?style=social&logo=github
https://img.shields.io/badge/Link-API-blue.svg https://img.shields.io/badge/Link-Install-blue.svg https://img.shields.io/badge/Link-GitHub-blue.svg https://img.shields.io/badge/Link-Submit_Issue-blue.svg https://img.shields.io/badge/Link-Request_Feature-blue.svg https://img.shields.io/badge/Link-Download-blue.svg

Welcome to pythonic_gmail Documentation

https://pythonic-gmail.readthedocs.io/en/latest/_static/pythonic_gmail-logo.png

A Pythonic object-oriented wrapper for the Gmail API

pythonic_gmail transforms the traditional Google Gmail API client into an intuitive, object-oriented interface that follows Python best practices. While the native Gmail API returns raw JSON dictionaries, this library provides structured data models with property-based access, automatic pagination handling, and efficient batch operations.

Key Features:

Object-Oriented Data Models: All Gmail API responses are wrapped in frozen dataclasses with property-based access. Instead of accessing response["messages"][0]["id"], you simply use message.id. Each model maintains the original raw data while providing a clean, type-safe interface with intelligent property caching.

Intelligent Pagination: Gmail’s pagination mechanism with pageToken and nextPageToken is completely abstracted away. The library provides iterator proxies that handle token management automatically, allowing you to focus on processing data rather than managing API pagination state.

Efficient Batch Operations: Built-in batch processing utilities automatically group individual API calls into efficient batch requests. This significantly reduces HTTP overhead when retrieving multiple messages or threads, improving performance for bulk operations.

Stable Interface Design: The library implements a core data extraction pattern where each model exposes essential information through a standardized core_data property. This provides resilience against API schema changes while maintaining a consistent developer experience.

Flexible Iterator Architecture: Advanced iterator proxies support both response-level iteration (for processing API responses in batches) and item-level iteration (for processing individual messages or threads). This dual-mode approach provides flexibility for different use cases and performance requirements.

Install

pythonic_gmail is released on PyPI, so all you need is to:

$ pip install pythonic-gmail

To upgrade to latest version:

$ pip install --upgrade pythonic-gmail

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

pythonic_gmail-0.1.1.tar.gz (17.5 kB view details)

Uploaded Source

Built Distribution

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

pythonic_gmail-0.1.1-py3-none-any.whl (18.7 kB view details)

Uploaded Python 3

File details

Details for the file pythonic_gmail-0.1.1.tar.gz.

File metadata

  • Download URL: pythonic_gmail-0.1.1.tar.gz
  • Upload date:
  • Size: 17.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.8

File hashes

Hashes for pythonic_gmail-0.1.1.tar.gz
Algorithm Hash digest
SHA256 8f29dff38dcbcb6067ecfc383230162856b730abf2238035504e4003d891e5d5
MD5 775fc0c1101040de9dfe0b8ba0869caa
BLAKE2b-256 c18e33025006651b8e1f5188308a73849b9f7816bb755f3f9f70f03f56bdaf1d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pythonic_gmail-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 18.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.8

File hashes

Hashes for pythonic_gmail-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b1363bd8595db4437f3559a8cbc92a1159f382b2e679264ba9f22cb0892a1ef7
MD5 06a451b4ac695db855f70e79a2681870
BLAKE2b-256 bd61106421f51a1b2b6cb4051057b78bba14c9bbf3abb24836c6f078640fed32

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