gemini-webapi 1.10.1__tar.gz → 1.10.2__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.
- {gemini_webapi-1.10.1 → gemini_webapi-1.10.2}/PKG-INFO +3 -6
- {gemini_webapi-1.10.1 → gemini_webapi-1.10.2}/README.md +1 -4
- {gemini_webapi-1.10.1 → gemini_webapi-1.10.2}/pyproject.toml +1 -1
- {gemini_webapi-1.10.1 → gemini_webapi-1.10.2}/src/gemini_webapi/constants.py +5 -25
- {gemini_webapi-1.10.1 → gemini_webapi-1.10.2}/src/gemini_webapi.egg-info/PKG-INFO +3 -6
- {gemini_webapi-1.10.1 → gemini_webapi-1.10.2}/src/gemini_webapi.egg-info/requires.txt +1 -1
- {gemini_webapi-1.10.1 → gemini_webapi-1.10.2}/tests/test_client_features.py +1 -1
- {gemini_webapi-1.10.1 → gemini_webapi-1.10.2}/.github/dependabot.yml +0 -0
- {gemini_webapi-1.10.1 → gemini_webapi-1.10.2}/.github/workflows/github-release.yml +0 -0
- {gemini_webapi-1.10.1 → gemini_webapi-1.10.2}/.github/workflows/pypi-publish.yml +0 -0
- {gemini_webapi-1.10.1 → gemini_webapi-1.10.2}/.gitignore +0 -0
- {gemini_webapi-1.10.1 → gemini_webapi-1.10.2}/.vscode/launch.json +0 -0
- {gemini_webapi-1.10.1 → gemini_webapi-1.10.2}/.vscode/settings.json +0 -0
- {gemini_webapi-1.10.1 → gemini_webapi-1.10.2}/LICENSE +0 -0
- {gemini_webapi-1.10.1 → gemini_webapi-1.10.2}/assets/banner.png +0 -0
- {gemini_webapi-1.10.1 → gemini_webapi-1.10.2}/assets/favicon.png +0 -0
- {gemini_webapi-1.10.1 → gemini_webapi-1.10.2}/assets/logo.svg +0 -0
- {gemini_webapi-1.10.1 → gemini_webapi-1.10.2}/assets/sample.pdf +0 -0
- {gemini_webapi-1.10.1 → gemini_webapi-1.10.2}/setup.cfg +0 -0
- {gemini_webapi-1.10.1 → gemini_webapi-1.10.2}/src/gemini_webapi/__init__.py +0 -0
- {gemini_webapi-1.10.1 → gemini_webapi-1.10.2}/src/gemini_webapi/client.py +0 -0
- {gemini_webapi-1.10.1 → gemini_webapi-1.10.2}/src/gemini_webapi/exceptions.py +0 -0
- {gemini_webapi-1.10.1 → gemini_webapi-1.10.2}/src/gemini_webapi/types/__init__.py +0 -0
- {gemini_webapi-1.10.1 → gemini_webapi-1.10.2}/src/gemini_webapi/types/candidate.py +0 -0
- {gemini_webapi-1.10.1 → gemini_webapi-1.10.2}/src/gemini_webapi/types/image.py +0 -0
- {gemini_webapi-1.10.1 → gemini_webapi-1.10.2}/src/gemini_webapi/types/modeloutput.py +0 -0
- {gemini_webapi-1.10.1 → gemini_webapi-1.10.2}/src/gemini_webapi/utils/__init__.py +0 -0
- {gemini_webapi-1.10.1 → gemini_webapi-1.10.2}/src/gemini_webapi/utils/get_access_token.py +0 -0
- {gemini_webapi-1.10.1 → gemini_webapi-1.10.2}/src/gemini_webapi/utils/load_browser_cookies.py +0 -0
- {gemini_webapi-1.10.1 → gemini_webapi-1.10.2}/src/gemini_webapi/utils/logger.py +0 -0
- {gemini_webapi-1.10.1 → gemini_webapi-1.10.2}/src/gemini_webapi/utils/rotate_1psidts.py +0 -0
- {gemini_webapi-1.10.1 → gemini_webapi-1.10.2}/src/gemini_webapi/utils/upload_file.py +0 -0
- {gemini_webapi-1.10.1 → gemini_webapi-1.10.2}/src/gemini_webapi.egg-info/SOURCES.txt +0 -0
- {gemini_webapi-1.10.1 → gemini_webapi-1.10.2}/src/gemini_webapi.egg-info/dependency_links.txt +0 -0
- {gemini_webapi-1.10.1 → gemini_webapi-1.10.2}/src/gemini_webapi.egg-info/top_level.txt +0 -0
- {gemini_webapi-1.10.1 → gemini_webapi-1.10.2}/tests/test_rotate_cookies.py +0 -0
- {gemini_webapi-1.10.1 → gemini_webapi-1.10.2}/tests/test_save_image.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: gemini-webapi
|
|
3
|
-
Version: 1.10.
|
|
3
|
+
Version: 1.10.2
|
|
4
4
|
Summary: ✨ An elegant async Python wrapper for Google Gemini web app
|
|
5
5
|
Author: UZQueen
|
|
6
6
|
License: GNU AFFERO GENERAL PUBLIC LICENSE
|
|
@@ -677,8 +677,8 @@ Requires-Python: >=3.10
|
|
|
677
677
|
Description-Content-Type: text/markdown
|
|
678
678
|
License-File: LICENSE
|
|
679
679
|
Requires-Dist: httpx[http2]~=0.28.1
|
|
680
|
-
Requires-Dist: pydantic~=2.10.5
|
|
681
680
|
Requires-Dist: loguru~=0.7.3
|
|
681
|
+
Requires-Dist: pydantic~=2.11.3
|
|
682
682
|
Dynamic: license-file
|
|
683
683
|
|
|
684
684
|
<p align="center">
|
|
@@ -825,15 +825,12 @@ Currently available models (as of Feb 5, 2025):
|
|
|
825
825
|
- `unspecified` - Default model (same as `gemini-2.0-flash` if account does NOT have Gemini Advanced subscription)
|
|
826
826
|
- `gemini-2.0-flash` - Gemini 2.0 Flash
|
|
827
827
|
- `gemini-2.0-flash-thinking` - Gemini 2.0 Flash Thinking Experimental
|
|
828
|
-
- `gemini-2.
|
|
829
|
-
- `gemini-1.5-flash` - Gemini 1.5 Flash
|
|
828
|
+
- `gemini-2.5-pro` - Gemini 2.5 Pro (daily usage limit imposed)
|
|
830
829
|
|
|
831
830
|
Models pending update (may not work as expected):
|
|
832
831
|
|
|
833
832
|
- `gemini-2.5-exp-advanced` - Gemini 2.5 Experimental Advanced **(requires Gemini Advanced account)**
|
|
834
833
|
- `gemini-2.0-exp-advanced` - Gemini 2.0 Experimental Advanced **(requires Gemini Advanced account)**
|
|
835
|
-
- `gemini-1.5-pro` - Gemini 1.5 Pro **(requires Gemini Advanced account)**
|
|
836
|
-
- `gemini-1.5-pro-research` - Gemini 1.5 Pro with Deep Research **(requires Gemini Advanced account)**
|
|
837
834
|
|
|
838
835
|
```python
|
|
839
836
|
from gemini_webapi.constants import Model
|
|
@@ -142,15 +142,12 @@ Currently available models (as of Feb 5, 2025):
|
|
|
142
142
|
- `unspecified` - Default model (same as `gemini-2.0-flash` if account does NOT have Gemini Advanced subscription)
|
|
143
143
|
- `gemini-2.0-flash` - Gemini 2.0 Flash
|
|
144
144
|
- `gemini-2.0-flash-thinking` - Gemini 2.0 Flash Thinking Experimental
|
|
145
|
-
- `gemini-2.
|
|
146
|
-
- `gemini-1.5-flash` - Gemini 1.5 Flash
|
|
145
|
+
- `gemini-2.5-pro` - Gemini 2.5 Pro (daily usage limit imposed)
|
|
147
146
|
|
|
148
147
|
Models pending update (may not work as expected):
|
|
149
148
|
|
|
150
149
|
- `gemini-2.5-exp-advanced` - Gemini 2.5 Experimental Advanced **(requires Gemini Advanced account)**
|
|
151
150
|
- `gemini-2.0-exp-advanced` - Gemini 2.0 Experimental Advanced **(requires Gemini Advanced account)**
|
|
152
|
-
- `gemini-1.5-pro` - Gemini 1.5 Pro **(requires Gemini Advanced account)**
|
|
153
|
-
- `gemini-1.5-pro-research` - Gemini 1.5 Pro with Deep Research **(requires Gemini Advanced account)**
|
|
154
151
|
|
|
155
152
|
```python
|
|
156
153
|
from gemini_webapi.constants import Model
|
|
@@ -30,21 +30,16 @@ class Model(Enum):
|
|
|
30
30
|
{"x-goog-ext-525001261-jspb": '[null,null,null,null,"f299729663a2343f"]'},
|
|
31
31
|
False,
|
|
32
32
|
)
|
|
33
|
-
G_2_0_FLASH_EXP = (
|
|
34
|
-
"gemini-2.0-flash-exp",
|
|
35
|
-
{"x-goog-ext-525001261-jspb": '[null,null,null,null,"f299729663a2343f"]'},
|
|
36
|
-
False,
|
|
37
|
-
) # Deprecated, should be removed in the future
|
|
38
33
|
G_2_0_FLASH_THINKING = (
|
|
39
34
|
"gemini-2.0-flash-thinking",
|
|
40
|
-
{"x-goog-ext-525001261-jspb": '[null,null,null,null,"
|
|
35
|
+
{"x-goog-ext-525001261-jspb": '[null,null,null,null,"7ca48d02d802f20a"]'},
|
|
41
36
|
False,
|
|
42
37
|
)
|
|
43
|
-
|
|
44
|
-
"gemini-2.
|
|
45
|
-
{"x-goog-ext-525001261-jspb": '[null,null,null,null,"
|
|
38
|
+
G_2_5_PRO = (
|
|
39
|
+
"gemini-2.5-pro",
|
|
40
|
+
{"x-goog-ext-525001261-jspb": '[null,null,null,null,"2525e3954d185b3c"]'},
|
|
46
41
|
False,
|
|
47
|
-
)
|
|
42
|
+
)
|
|
48
43
|
G_2_0_EXP_ADVANCED = (
|
|
49
44
|
"gemini-2.0-exp-advanced",
|
|
50
45
|
{"x-goog-ext-525001261-jspb": '[null,null,null,null,"b1e46a6037e6aa9f"]'},
|
|
@@ -55,21 +50,6 @@ class Model(Enum):
|
|
|
55
50
|
{"x-goog-ext-525001261-jspb": '[null,null,null,null,"203e6bb81620bcfe"]'},
|
|
56
51
|
True,
|
|
57
52
|
)
|
|
58
|
-
G_1_5_FLASH = (
|
|
59
|
-
"gemini-1.5-flash",
|
|
60
|
-
{"x-goog-ext-525001261-jspb": '[null,null,null,null,"418ab5ea040b5c43"]'},
|
|
61
|
-
False,
|
|
62
|
-
) # Deprecated, should be removed in the future
|
|
63
|
-
G_1_5_PRO = (
|
|
64
|
-
"gemini-1.5-pro",
|
|
65
|
-
{"x-goog-ext-525001261-jspb": '[null,null,null,null,"9d60dfae93c9ff1f"]'},
|
|
66
|
-
True,
|
|
67
|
-
) # Deprecated, should be removed in the future
|
|
68
|
-
G_1_5_PRO_RESEARCH = (
|
|
69
|
-
"gemini-1.5-pro-research",
|
|
70
|
-
{"x-goog-ext-525001261-jspb": '[null,null,null,null,"e5a44cb1dae2b489"]'},
|
|
71
|
-
True,
|
|
72
|
-
) # Deprecated, should be removed in the future
|
|
73
53
|
|
|
74
54
|
def __init__(self, name, header, advanced_only):
|
|
75
55
|
self.model_name = name
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: gemini-webapi
|
|
3
|
-
Version: 1.10.
|
|
3
|
+
Version: 1.10.2
|
|
4
4
|
Summary: ✨ An elegant async Python wrapper for Google Gemini web app
|
|
5
5
|
Author: UZQueen
|
|
6
6
|
License: GNU AFFERO GENERAL PUBLIC LICENSE
|
|
@@ -677,8 +677,8 @@ Requires-Python: >=3.10
|
|
|
677
677
|
Description-Content-Type: text/markdown
|
|
678
678
|
License-File: LICENSE
|
|
679
679
|
Requires-Dist: httpx[http2]~=0.28.1
|
|
680
|
-
Requires-Dist: pydantic~=2.10.5
|
|
681
680
|
Requires-Dist: loguru~=0.7.3
|
|
681
|
+
Requires-Dist: pydantic~=2.11.3
|
|
682
682
|
Dynamic: license-file
|
|
683
683
|
|
|
684
684
|
<p align="center">
|
|
@@ -825,15 +825,12 @@ Currently available models (as of Feb 5, 2025):
|
|
|
825
825
|
- `unspecified` - Default model (same as `gemini-2.0-flash` if account does NOT have Gemini Advanced subscription)
|
|
826
826
|
- `gemini-2.0-flash` - Gemini 2.0 Flash
|
|
827
827
|
- `gemini-2.0-flash-thinking` - Gemini 2.0 Flash Thinking Experimental
|
|
828
|
-
- `gemini-2.
|
|
829
|
-
- `gemini-1.5-flash` - Gemini 1.5 Flash
|
|
828
|
+
- `gemini-2.5-pro` - Gemini 2.5 Pro (daily usage limit imposed)
|
|
830
829
|
|
|
831
830
|
Models pending update (may not work as expected):
|
|
832
831
|
|
|
833
832
|
- `gemini-2.5-exp-advanced` - Gemini 2.5 Experimental Advanced **(requires Gemini Advanced account)**
|
|
834
833
|
- `gemini-2.0-exp-advanced` - Gemini 2.0 Experimental Advanced **(requires Gemini Advanced account)**
|
|
835
|
-
- `gemini-1.5-pro` - Gemini 1.5 Pro **(requires Gemini Advanced account)**
|
|
836
|
-
- `gemini-1.5-pro-research` - Gemini 1.5 Pro with Deep Research **(requires Gemini Advanced account)**
|
|
837
834
|
|
|
838
835
|
```python
|
|
839
836
|
from gemini_webapi.constants import Model
|
|
@@ -26,7 +26,7 @@ class TestGeminiClient(unittest.IsolatedAsyncioTestCase):
|
|
|
26
26
|
@logger.catch(reraise=True)
|
|
27
27
|
async def test_successful_request(self):
|
|
28
28
|
response = await self.geminiclient.generate_content(
|
|
29
|
-
"Hello World!", model=Model.
|
|
29
|
+
"Hello World!", model=Model.G_2_5_PRO
|
|
30
30
|
)
|
|
31
31
|
logger.debug(response.text)
|
|
32
32
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{gemini_webapi-1.10.1 → gemini_webapi-1.10.2}/src/gemini_webapi/utils/load_browser_cookies.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{gemini_webapi-1.10.1 → gemini_webapi-1.10.2}/src/gemini_webapi.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|