google-api-client-wrapper 1.0.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (44) hide show
  1. google_api_client_wrapper-1.0.0/LICENSE +21 -0
  2. google_api_client_wrapper-1.0.0/PKG-INFO +103 -0
  3. google_api_client_wrapper-1.0.0/README.md +56 -0
  4. google_api_client_wrapper-1.0.0/google_api_client_wrapper.egg-info/PKG-INFO +103 -0
  5. google_api_client_wrapper-1.0.0/google_api_client_wrapper.egg-info/SOURCES.txt +42 -0
  6. google_api_client_wrapper-1.0.0/google_api_client_wrapper.egg-info/dependency_links.txt +1 -0
  7. google_api_client_wrapper-1.0.0/google_api_client_wrapper.egg-info/requires.txt +6 -0
  8. google_api_client_wrapper-1.0.0/google_api_client_wrapper.egg-info/top_level.txt +1 -0
  9. google_api_client_wrapper-1.0.0/google_client/__init__.py +6 -0
  10. google_api_client_wrapper-1.0.0/google_client/services/__init__.py +13 -0
  11. google_api_client_wrapper-1.0.0/google_client/services/calendar/__init__.py +14 -0
  12. google_api_client_wrapper-1.0.0/google_client/services/calendar/api_service.py +454 -0
  13. google_api_client_wrapper-1.0.0/google_client/services/calendar/constants.py +48 -0
  14. google_api_client_wrapper-1.0.0/google_client/services/calendar/exceptions.py +35 -0
  15. google_api_client_wrapper-1.0.0/google_client/services/calendar/query_builder.py +314 -0
  16. google_api_client_wrapper-1.0.0/google_client/services/calendar/types.py +403 -0
  17. google_api_client_wrapper-1.0.0/google_client/services/calendar/utils.py +338 -0
  18. google_api_client_wrapper-1.0.0/google_client/services/drive/__init__.py +13 -0
  19. google_api_client_wrapper-1.0.0/google_client/services/drive/api_service.py +1133 -0
  20. google_api_client_wrapper-1.0.0/google_client/services/drive/constants.py +37 -0
  21. google_api_client_wrapper-1.0.0/google_client/services/drive/exceptions.py +60 -0
  22. google_api_client_wrapper-1.0.0/google_client/services/drive/query_builder.py +385 -0
  23. google_api_client_wrapper-1.0.0/google_client/services/drive/types.py +242 -0
  24. google_api_client_wrapper-1.0.0/google_client/services/drive/utils.py +392 -0
  25. google_api_client_wrapper-1.0.0/google_client/services/gmail/__init__.py +16 -0
  26. google_api_client_wrapper-1.0.0/google_client/services/gmail/api_service.py +715 -0
  27. google_api_client_wrapper-1.0.0/google_client/services/gmail/constants.py +6 -0
  28. google_api_client_wrapper-1.0.0/google_client/services/gmail/exceptions.py +45 -0
  29. google_api_client_wrapper-1.0.0/google_client/services/gmail/query_builder.py +408 -0
  30. google_api_client_wrapper-1.0.0/google_client/services/gmail/types.py +285 -0
  31. google_api_client_wrapper-1.0.0/google_client/services/gmail/utils.py +426 -0
  32. google_api_client_wrapper-1.0.0/google_client/services/tasks/__init__.py +12 -0
  33. google_api_client_wrapper-1.0.0/google_client/services/tasks/api_service.py +561 -0
  34. google_api_client_wrapper-1.0.0/google_client/services/tasks/constants.py +32 -0
  35. google_api_client_wrapper-1.0.0/google_client/services/tasks/exceptions.py +35 -0
  36. google_api_client_wrapper-1.0.0/google_client/services/tasks/query_builder.py +324 -0
  37. google_api_client_wrapper-1.0.0/google_client/services/tasks/types.py +156 -0
  38. google_api_client_wrapper-1.0.0/google_client/services/tasks/utils.py +224 -0
  39. google_api_client_wrapper-1.0.0/google_client/user_client.py +208 -0
  40. google_api_client_wrapper-1.0.0/google_client/utils/__init__.py +0 -0
  41. google_api_client_wrapper-1.0.0/google_client/utils/datetime.py +144 -0
  42. google_api_client_wrapper-1.0.0/google_client/utils/validation.py +71 -0
  43. google_api_client_wrapper-1.0.0/pyproject.toml +44 -0
  44. google_api_client_wrapper-1.0.0/setup.cfg +4 -0
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Dagmawi Molla
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,103 @@
1
+ Metadata-Version: 2.4
2
+ Name: google-api-client-wrapper
3
+ Version: 1.0.0
4
+ Summary: A comprehensive Python wrapper for Google APIs, providing clean and intuitive access to Gmail, Google Drive, Google Calendar, and Google Tasks services.
5
+ Author-email: Dagmawi Molla <dagmawishewadeg@gmail.com>
6
+ License: MIT License
7
+
8
+ Copyright (c) 2025 Dagmawi Molla
9
+
10
+ Permission is hereby granted, free of charge, to any person obtaining a copy
11
+ of this software and associated documentation files (the "Software"), to deal
12
+ in the Software without restriction, including without limitation the rights
13
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
14
+ copies of the Software, and to permit persons to whom the Software is
15
+ furnished to do so, subject to the following conditions:
16
+
17
+ The above copyright notice and this permission notice shall be included in all
18
+ copies or substantial portions of the Software.
19
+
20
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
21
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
22
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
23
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
24
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
25
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
26
+ SOFTWARE.
27
+
28
+ Project-URL: Homepage, https://github.com/dsmolla/google-api-client-wrapper
29
+ Project-URL: Documentation, https://github.com/dsmolla/google-api-wrapper/blob/main/README.md
30
+ Project-URL: Repository, https://github.com/dsmolla/google-api-client-wrapper
31
+ Keywords: google-api,gmail,google-drive,google-calendar,google-tasks,api-wrapper,python-wrapper
32
+ Classifier: Programming Language :: Python :: 3
33
+ Classifier: License :: OSI Approved :: MIT License
34
+ Classifier: Operating System :: OS Independent
35
+ Classifier: Intended Audience :: Developers
36
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
37
+ Requires-Python: >=3.9
38
+ Description-Content-Type: text/markdown
39
+ License-File: LICENSE
40
+ Requires-Dist: google-api-python-client>=2.163.0
41
+ Requires-Dist: google-auth>=2.28.1
42
+ Requires-Dist: google-auth-httplib2
43
+ Requires-Dist: google-auth-oauthlib>=1.2.1
44
+ Requires-Dist: tzlocal>=5.3.1
45
+ Requires-Dist: html2text>=2025.4.15
46
+ Dynamic: license-file
47
+
48
+ # Google API Client
49
+
50
+ A comprehensive Python wrapper for Google APIs, providing clean and intuitive access to Gmail, Google Drive, Google Calendar, and Google Tasks services.
51
+
52
+ ## Features
53
+
54
+ - **Gmail Service**: Send, receive, search, and manage emails
55
+ - **Google Drive Service**: Upload, download, and manage files and folders
56
+ - **Google Calendar Service**: Create, update, and manage calendar events
57
+ - **Google Tasks Service**: Manage tasks and task lists
58
+ - **OAuth2 Authentication**: Secure authentication flow
59
+ - **Query Builders**: Intuitive query building for each service
60
+ - **Multi-User Authentication**: Supports multiple users to be authenticated
61
+ - **Dataclass Models**: Uses Python dataclasses for clean, type-safe data structures (GmailMessage, EmailAddress, Task, Event, etc.)
62
+
63
+ ## Installation
64
+
65
+
66
+ ## Quick Start
67
+
68
+ ```python
69
+ from google_client.user_client import UserClient
70
+ from datetime import datetime, timedelta
71
+
72
+ # Authenticate User
73
+ user_1 = UserClient.from_file("< user_1_token_path >", "< app_credentials_path >")
74
+ user_2, user_2_token = UserClient.from_credentials_info(
75
+ "< user_2_token_dict >": 1,
76
+ "< app_credentials_dict >": 2,
77
+ "< scopes_list >,
78
+ )
79
+
80
+ # List User 1's emails
81
+ user_1_emails = user_1.gmail.list_emails()
82
+
83
+ # Create a calendar event for User 2
84
+ user_2_event = user_2.calendar.create_event(datetime.now(), datetime.now() + timedelta(hours=1))
85
+ ```
86
+
87
+ ## Package Documentation
88
+
89
+ Each service has detailed documentation with examples and API reference:
90
+
91
+ - **[Gmail Service](google_client/services/gmail/README.md)** - Email management and operations
92
+ - **[Google Drive Service](google_client/services/drive/README.md)** - File and folder management
93
+ - **[Google Calendar Service](google_client/services/calendar/README.md)** - Calendar and event management
94
+ - **[Google Tasks Service](google_client/services/tasks/README.md)** - Task and task list management
95
+
96
+ ## Links
97
+ - **[Google Auth & Tokens](https://developers.google.com/identity/protocols/oauth2/web-server#python)**
98
+
99
+ ---
100
+ See individual package documentation for detailed usage examples and API references.
101
+
102
+ For more information look at the official Google API Documentation for each service
103
+
@@ -0,0 +1,56 @@
1
+ # Google API Client
2
+
3
+ A comprehensive Python wrapper for Google APIs, providing clean and intuitive access to Gmail, Google Drive, Google Calendar, and Google Tasks services.
4
+
5
+ ## Features
6
+
7
+ - **Gmail Service**: Send, receive, search, and manage emails
8
+ - **Google Drive Service**: Upload, download, and manage files and folders
9
+ - **Google Calendar Service**: Create, update, and manage calendar events
10
+ - **Google Tasks Service**: Manage tasks and task lists
11
+ - **OAuth2 Authentication**: Secure authentication flow
12
+ - **Query Builders**: Intuitive query building for each service
13
+ - **Multi-User Authentication**: Supports multiple users to be authenticated
14
+ - **Dataclass Models**: Uses Python dataclasses for clean, type-safe data structures (GmailMessage, EmailAddress, Task, Event, etc.)
15
+
16
+ ## Installation
17
+
18
+
19
+ ## Quick Start
20
+
21
+ ```python
22
+ from google_client.user_client import UserClient
23
+ from datetime import datetime, timedelta
24
+
25
+ # Authenticate User
26
+ user_1 = UserClient.from_file("< user_1_token_path >", "< app_credentials_path >")
27
+ user_2, user_2_token = UserClient.from_credentials_info(
28
+ "< user_2_token_dict >": 1,
29
+ "< app_credentials_dict >": 2,
30
+ "< scopes_list >,
31
+ )
32
+
33
+ # List User 1's emails
34
+ user_1_emails = user_1.gmail.list_emails()
35
+
36
+ # Create a calendar event for User 2
37
+ user_2_event = user_2.calendar.create_event(datetime.now(), datetime.now() + timedelta(hours=1))
38
+ ```
39
+
40
+ ## Package Documentation
41
+
42
+ Each service has detailed documentation with examples and API reference:
43
+
44
+ - **[Gmail Service](google_client/services/gmail/README.md)** - Email management and operations
45
+ - **[Google Drive Service](google_client/services/drive/README.md)** - File and folder management
46
+ - **[Google Calendar Service](google_client/services/calendar/README.md)** - Calendar and event management
47
+ - **[Google Tasks Service](google_client/services/tasks/README.md)** - Task and task list management
48
+
49
+ ## Links
50
+ - **[Google Auth & Tokens](https://developers.google.com/identity/protocols/oauth2/web-server#python)**
51
+
52
+ ---
53
+ See individual package documentation for detailed usage examples and API references.
54
+
55
+ For more information look at the official Google API Documentation for each service
56
+
@@ -0,0 +1,103 @@
1
+ Metadata-Version: 2.4
2
+ Name: google-api-client-wrapper
3
+ Version: 1.0.0
4
+ Summary: A comprehensive Python wrapper for Google APIs, providing clean and intuitive access to Gmail, Google Drive, Google Calendar, and Google Tasks services.
5
+ Author-email: Dagmawi Molla <dagmawishewadeg@gmail.com>
6
+ License: MIT License
7
+
8
+ Copyright (c) 2025 Dagmawi Molla
9
+
10
+ Permission is hereby granted, free of charge, to any person obtaining a copy
11
+ of this software and associated documentation files (the "Software"), to deal
12
+ in the Software without restriction, including without limitation the rights
13
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
14
+ copies of the Software, and to permit persons to whom the Software is
15
+ furnished to do so, subject to the following conditions:
16
+
17
+ The above copyright notice and this permission notice shall be included in all
18
+ copies or substantial portions of the Software.
19
+
20
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
21
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
22
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
23
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
24
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
25
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
26
+ SOFTWARE.
27
+
28
+ Project-URL: Homepage, https://github.com/dsmolla/google-api-client-wrapper
29
+ Project-URL: Documentation, https://github.com/dsmolla/google-api-wrapper/blob/main/README.md
30
+ Project-URL: Repository, https://github.com/dsmolla/google-api-client-wrapper
31
+ Keywords: google-api,gmail,google-drive,google-calendar,google-tasks,api-wrapper,python-wrapper
32
+ Classifier: Programming Language :: Python :: 3
33
+ Classifier: License :: OSI Approved :: MIT License
34
+ Classifier: Operating System :: OS Independent
35
+ Classifier: Intended Audience :: Developers
36
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
37
+ Requires-Python: >=3.9
38
+ Description-Content-Type: text/markdown
39
+ License-File: LICENSE
40
+ Requires-Dist: google-api-python-client>=2.163.0
41
+ Requires-Dist: google-auth>=2.28.1
42
+ Requires-Dist: google-auth-httplib2
43
+ Requires-Dist: google-auth-oauthlib>=1.2.1
44
+ Requires-Dist: tzlocal>=5.3.1
45
+ Requires-Dist: html2text>=2025.4.15
46
+ Dynamic: license-file
47
+
48
+ # Google API Client
49
+
50
+ A comprehensive Python wrapper for Google APIs, providing clean and intuitive access to Gmail, Google Drive, Google Calendar, and Google Tasks services.
51
+
52
+ ## Features
53
+
54
+ - **Gmail Service**: Send, receive, search, and manage emails
55
+ - **Google Drive Service**: Upload, download, and manage files and folders
56
+ - **Google Calendar Service**: Create, update, and manage calendar events
57
+ - **Google Tasks Service**: Manage tasks and task lists
58
+ - **OAuth2 Authentication**: Secure authentication flow
59
+ - **Query Builders**: Intuitive query building for each service
60
+ - **Multi-User Authentication**: Supports multiple users to be authenticated
61
+ - **Dataclass Models**: Uses Python dataclasses for clean, type-safe data structures (GmailMessage, EmailAddress, Task, Event, etc.)
62
+
63
+ ## Installation
64
+
65
+
66
+ ## Quick Start
67
+
68
+ ```python
69
+ from google_client.user_client import UserClient
70
+ from datetime import datetime, timedelta
71
+
72
+ # Authenticate User
73
+ user_1 = UserClient.from_file("< user_1_token_path >", "< app_credentials_path >")
74
+ user_2, user_2_token = UserClient.from_credentials_info(
75
+ "< user_2_token_dict >": 1,
76
+ "< app_credentials_dict >": 2,
77
+ "< scopes_list >,
78
+ )
79
+
80
+ # List User 1's emails
81
+ user_1_emails = user_1.gmail.list_emails()
82
+
83
+ # Create a calendar event for User 2
84
+ user_2_event = user_2.calendar.create_event(datetime.now(), datetime.now() + timedelta(hours=1))
85
+ ```
86
+
87
+ ## Package Documentation
88
+
89
+ Each service has detailed documentation with examples and API reference:
90
+
91
+ - **[Gmail Service](google_client/services/gmail/README.md)** - Email management and operations
92
+ - **[Google Drive Service](google_client/services/drive/README.md)** - File and folder management
93
+ - **[Google Calendar Service](google_client/services/calendar/README.md)** - Calendar and event management
94
+ - **[Google Tasks Service](google_client/services/tasks/README.md)** - Task and task list management
95
+
96
+ ## Links
97
+ - **[Google Auth & Tokens](https://developers.google.com/identity/protocols/oauth2/web-server#python)**
98
+
99
+ ---
100
+ See individual package documentation for detailed usage examples and API references.
101
+
102
+ For more information look at the official Google API Documentation for each service
103
+
@@ -0,0 +1,42 @@
1
+ LICENSE
2
+ README.md
3
+ pyproject.toml
4
+ google_api_client_wrapper.egg-info/PKG-INFO
5
+ google_api_client_wrapper.egg-info/SOURCES.txt
6
+ google_api_client_wrapper.egg-info/dependency_links.txt
7
+ google_api_client_wrapper.egg-info/requires.txt
8
+ google_api_client_wrapper.egg-info/top_level.txt
9
+ google_client/__init__.py
10
+ google_client/user_client.py
11
+ google_client/services/__init__.py
12
+ google_client/services/calendar/__init__.py
13
+ google_client/services/calendar/api_service.py
14
+ google_client/services/calendar/constants.py
15
+ google_client/services/calendar/exceptions.py
16
+ google_client/services/calendar/query_builder.py
17
+ google_client/services/calendar/types.py
18
+ google_client/services/calendar/utils.py
19
+ google_client/services/drive/__init__.py
20
+ google_client/services/drive/api_service.py
21
+ google_client/services/drive/constants.py
22
+ google_client/services/drive/exceptions.py
23
+ google_client/services/drive/query_builder.py
24
+ google_client/services/drive/types.py
25
+ google_client/services/drive/utils.py
26
+ google_client/services/gmail/__init__.py
27
+ google_client/services/gmail/api_service.py
28
+ google_client/services/gmail/constants.py
29
+ google_client/services/gmail/exceptions.py
30
+ google_client/services/gmail/query_builder.py
31
+ google_client/services/gmail/types.py
32
+ google_client/services/gmail/utils.py
33
+ google_client/services/tasks/__init__.py
34
+ google_client/services/tasks/api_service.py
35
+ google_client/services/tasks/constants.py
36
+ google_client/services/tasks/exceptions.py
37
+ google_client/services/tasks/query_builder.py
38
+ google_client/services/tasks/types.py
39
+ google_client/services/tasks/utils.py
40
+ google_client/utils/__init__.py
41
+ google_client/utils/datetime.py
42
+ google_client/utils/validation.py
@@ -0,0 +1,6 @@
1
+ google-api-python-client>=2.163.0
2
+ google-auth>=2.28.1
3
+ google-auth-httplib2
4
+ google-auth-oauthlib>=1.2.1
5
+ tzlocal>=5.3.1
6
+ html2text>=2025.4.15
@@ -0,0 +1,6 @@
1
+
2
+ from . import services
3
+
4
+ __all__ = [
5
+ "services",
6
+ ]
@@ -0,0 +1,13 @@
1
+ """Google API services for various services."""
2
+
3
+ from . import calendar
4
+ from . import gmail
5
+ from . import drive
6
+ from . import tasks
7
+
8
+ __all__ = [
9
+ "calendar",
10
+ "gmail",
11
+ "drive",
12
+ "tasks"
13
+ ]
@@ -0,0 +1,14 @@
1
+ """Calendar client module for Google API integration."""
2
+
3
+ from .api_service import CalendarApiService
4
+ from .types import CalendarEvent, Attendee, TimeSlot, FreeBusyResponse
5
+ from .query_builder import EventQueryBuilder
6
+
7
+ __all__ = [
8
+ "CalendarApiService",
9
+ "CalendarEvent",
10
+ "Attendee",
11
+ "TimeSlot",
12
+ "FreeBusyResponse",
13
+ "EventQueryBuilder",
14
+ ]