This repository has been archived by the owner on Jun 12, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 14
/
setup.py
57 lines (53 loc) · 2.1 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
import re
from setuptools import find_packages, setup
def read(file_path, version=False):
with open(file_path, encoding="UTF-8") as f:
content = f.read()
if version:
match = re.search(r"""^__version__ = ['"]([^'"]*)['"]""", content, re.M)
if not match:
raise RuntimeError(f"{file_path} doesn't contain __version__")
return match.group(1)
return content
setup(
name="python-gemini-api",
version=read("gemini/__init__.py", version=True),
author="Daniel Park",
author_email="[email protected]",
description="The python package that returns Response of Google Gemini through API.",
long_description=read("README.md"),
long_description_content_type="text/markdown",
url="https://github.com/dsdanielpark/Gemini-API",
packages=find_packages(exclude=[]),
python_requires=">=3.9",
install_requires=[
"httpx[http2]>=0.20.0",
"requests",
"browser_cookie3",
"loguru",
"pydantic",
"aiohttp",
],
extras_require={
"voice": [
"gTTS", # Google Text-to-Speech
"SpeechRecognition", # Library for performing speech recognition, with support for several engines and APIs, including Google Speech Recognition
"openai", # OpenAI for Text-to-Speech and Speech-to-Text
"anthropic", # Anthropic for Text-to-Speech and Speech-to-Text
]
},
keywords="Python, API, Gemini, Google Gemini, Large Language Model, Chatbot API, Google API, Chatbot",
classifiers=[
"Development Status :: 2 - Pre-Alpha",
"Intended Audience :: Science/Research",
"Natural Language :: English",
"Programming Language :: Python",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"License :: OSI Approved :: MIT License",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
],
entry_points={"console_scripts": ["gemini=gemini.cli:main"]},
)