An example project generated by cookiecutter-pywf_open_source.
Project description
Welcome to pythonic_gmail Documentation
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
Release history Release notifications | RSS feed
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 pythonic_gmail-0.1.3.tar.gz.
File metadata
- Download URL: pythonic_gmail-0.1.3.tar.gz
- Upload date:
- Size: 22.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
12853e29893bf5608c1f5316bd092d13d7a29c6a9985138323e7d4fdd96d031f
|
|
| MD5 |
83999547120357f8392e4c6468f80f35
|
|
| BLAKE2b-256 |
004354f01367ece3667b8a84877d6a0b16f45e07011ede6d5e72208b1618210f
|
File details
Details for the file pythonic_gmail-0.1.3-py3-none-any.whl.
File metadata
- Download URL: pythonic_gmail-0.1.3-py3-none-any.whl
- Upload date:
- Size: 24.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e951d59dcfce3c7ab8a8bbb47b704d8a51aef6659869ec2241ccd611367ba46f
|
|
| MD5 |
eef2641f3b56c8454d2847a766bea678
|
|
| BLAKE2b-256 |
8dda7081f99a96b2d50b352bf34fa5fb10b3bf12a044e7c87b7f02466edf79c8
|