gemini-webapi 1.8.2__tar.gz → 1.8.3__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.8.2 → gemini_webapi-1.8.3}/.github/workflows/pypi-publish.yml +1 -1
- {gemini_webapi-1.8.2 → gemini_webapi-1.8.3}/PKG-INFO +4 -4
- {gemini_webapi-1.8.2 → gemini_webapi-1.8.3}/pyproject.toml +3 -3
- {gemini_webapi-1.8.2 → gemini_webapi-1.8.3}/src/gemini_webapi/client.py +1 -0
- {gemini_webapi-1.8.2 → gemini_webapi-1.8.3}/src/gemini_webapi/types/image.py +1 -1
- {gemini_webapi-1.8.2 → gemini_webapi-1.8.3}/src/gemini_webapi/utils/get_access_token.py +1 -0
- {gemini_webapi-1.8.2 → gemini_webapi-1.8.3}/src/gemini_webapi/utils/rotate_1psidts.py +1 -1
- {gemini_webapi-1.8.2 → gemini_webapi-1.8.3}/src/gemini_webapi/utils/upload_file.py +1 -1
- {gemini_webapi-1.8.2 → gemini_webapi-1.8.3}/src/gemini_webapi.egg-info/PKG-INFO +4 -4
- gemini_webapi-1.8.3/src/gemini_webapi.egg-info/requires.txt +3 -0
- gemini_webapi-1.8.2/src/gemini_webapi.egg-info/requires.txt +0 -3
- {gemini_webapi-1.8.2 → gemini_webapi-1.8.3}/.github/dependabot.yml +0 -0
- {gemini_webapi-1.8.2 → gemini_webapi-1.8.3}/.github/workflows/github-release.yml +0 -0
- {gemini_webapi-1.8.2 → gemini_webapi-1.8.3}/.gitignore +0 -0
- {gemini_webapi-1.8.2 → gemini_webapi-1.8.3}/.vscode/launch.json +0 -0
- {gemini_webapi-1.8.2 → gemini_webapi-1.8.3}/.vscode/settings.json +0 -0
- {gemini_webapi-1.8.2 → gemini_webapi-1.8.3}/LICENSE +0 -0
- {gemini_webapi-1.8.2 → gemini_webapi-1.8.3}/README.md +0 -0
- {gemini_webapi-1.8.2 → gemini_webapi-1.8.3}/assets/banner.png +0 -0
- {gemini_webapi-1.8.2 → gemini_webapi-1.8.3}/assets/favicon.png +0 -0
- {gemini_webapi-1.8.2 → gemini_webapi-1.8.3}/assets/logo.svg +0 -0
- {gemini_webapi-1.8.2 → gemini_webapi-1.8.3}/setup.cfg +0 -0
- {gemini_webapi-1.8.2 → gemini_webapi-1.8.3}/src/gemini_webapi/__init__.py +0 -0
- {gemini_webapi-1.8.2 → gemini_webapi-1.8.3}/src/gemini_webapi/constants.py +0 -0
- {gemini_webapi-1.8.2 → gemini_webapi-1.8.3}/src/gemini_webapi/exceptions.py +0 -0
- {gemini_webapi-1.8.2 → gemini_webapi-1.8.3}/src/gemini_webapi/types/__init__.py +0 -0
- {gemini_webapi-1.8.2 → gemini_webapi-1.8.3}/src/gemini_webapi/types/candidate.py +0 -0
- {gemini_webapi-1.8.2 → gemini_webapi-1.8.3}/src/gemini_webapi/types/modeloutput.py +0 -0
- {gemini_webapi-1.8.2 → gemini_webapi-1.8.3}/src/gemini_webapi/utils/__init__.py +0 -0
- {gemini_webapi-1.8.2 → gemini_webapi-1.8.3}/src/gemini_webapi/utils/load_browser_cookies.py +0 -0
- {gemini_webapi-1.8.2 → gemini_webapi-1.8.3}/src/gemini_webapi/utils/logger.py +0 -0
- {gemini_webapi-1.8.2 → gemini_webapi-1.8.3}/src/gemini_webapi.egg-info/SOURCES.txt +0 -0
- {gemini_webapi-1.8.2 → gemini_webapi-1.8.3}/src/gemini_webapi.egg-info/dependency_links.txt +0 -0
- {gemini_webapi-1.8.2 → gemini_webapi-1.8.3}/src/gemini_webapi.egg-info/top_level.txt +0 -0
- {gemini_webapi-1.8.2 → gemini_webapi-1.8.3}/tests/test_client_features.py +0 -0
- {gemini_webapi-1.8.2 → gemini_webapi-1.8.3}/tests/test_rotate_cookies.py +0 -0
- {gemini_webapi-1.8.2 → gemini_webapi-1.8.3}/tests/test_save_image.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.2
|
|
2
2
|
Name: gemini-webapi
|
|
3
|
-
Version: 1.8.
|
|
3
|
+
Version: 1.8.3
|
|
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
|
|
@@ -676,9 +676,9 @@ Classifier: Programming Language :: Python :: 3.12
|
|
|
676
676
|
Requires-Python: >=3.10
|
|
677
677
|
Description-Content-Type: text/markdown
|
|
678
678
|
License-File: LICENSE
|
|
679
|
-
Requires-Dist: httpx~=0.28.
|
|
680
|
-
Requires-Dist: pydantic~=2.10.
|
|
681
|
-
Requires-Dist: loguru~=0.7.
|
|
679
|
+
Requires-Dist: httpx[http2]~=0.28.1
|
|
680
|
+
Requires-Dist: pydantic~=2.10.5
|
|
681
|
+
Requires-Dist: loguru~=0.7.3
|
|
682
682
|
|
|
683
683
|
<p align="center">
|
|
684
684
|
<img src="https://raw.githubusercontent.com/HanaokaYuzu/Gemini-API/master/assets/banner.png" width="55%" alt="Gemini Banner" align="center">
|
|
@@ -80,7 +80,7 @@ class Image(BaseModel):
|
|
|
80
80
|
return None
|
|
81
81
|
|
|
82
82
|
async with AsyncClient(
|
|
83
|
-
follow_redirects=True, cookies=cookies, proxy=self.proxy
|
|
83
|
+
http2=True, follow_redirects=True, cookies=cookies, proxy=self.proxy
|
|
84
84
|
) as client:
|
|
85
85
|
response = await client.get(self.url)
|
|
86
86
|
if response.status_code == 200:
|
|
@@ -39,7 +39,7 @@ async def rotate_1psidts(cookies: dict, proxy: str | None = None) -> str:
|
|
|
39
39
|
|
|
40
40
|
# Check if the cache file was modified in the last minute to avoid 429 Too Many Requests
|
|
41
41
|
if not (path.is_file() and time.time() - os.path.getmtime(path) <= 60):
|
|
42
|
-
async with AsyncClient(proxy=proxy) as client:
|
|
42
|
+
async with AsyncClient(http2=True, proxy=proxy) as client:
|
|
43
43
|
response = await client.post(
|
|
44
44
|
url=Endpoint.ROTATE_COOKIES.value,
|
|
45
45
|
headers=Headers.ROTATE_COOKIES.value,
|
|
@@ -34,7 +34,7 @@ async def upload_file(file: bytes | str | Path, proxy: str | None = None) -> str
|
|
|
34
34
|
with open(file, "rb") as f:
|
|
35
35
|
file = f.read()
|
|
36
36
|
|
|
37
|
-
async with AsyncClient(proxy=proxy) as client:
|
|
37
|
+
async with AsyncClient(http2=True, proxy=proxy) as client:
|
|
38
38
|
response = await client.post(
|
|
39
39
|
url=Endpoint.UPLOAD.value,
|
|
40
40
|
headers=Headers.UPLOAD.value,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.2
|
|
2
2
|
Name: gemini-webapi
|
|
3
|
-
Version: 1.8.
|
|
3
|
+
Version: 1.8.3
|
|
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
|
|
@@ -676,9 +676,9 @@ Classifier: Programming Language :: Python :: 3.12
|
|
|
676
676
|
Requires-Python: >=3.10
|
|
677
677
|
Description-Content-Type: text/markdown
|
|
678
678
|
License-File: LICENSE
|
|
679
|
-
Requires-Dist: httpx~=0.28.
|
|
680
|
-
Requires-Dist: pydantic~=2.10.
|
|
681
|
-
Requires-Dist: loguru~=0.7.
|
|
679
|
+
Requires-Dist: httpx[http2]~=0.28.1
|
|
680
|
+
Requires-Dist: pydantic~=2.10.5
|
|
681
|
+
Requires-Dist: loguru~=0.7.3
|
|
682
682
|
|
|
683
683
|
<p align="center">
|
|
684
684
|
<img src="https://raw.githubusercontent.com/HanaokaYuzu/Gemini-API/master/assets/banner.png" width="55%" alt="Gemini Banner" align="center">
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|