forked from dsdanielpark/Bard-API
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
65 lines (57 loc) · 2.03 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
58
59
60
61
62
63
64
65
# Copyright 2023 Daniel Park, MIT License
import re
from setuptools import find_packages
from setuptools import setup
def get_version():
filename = "bardapi/__init__.py"
with open(filename) as f:
match = re.search(r"""^__version__ = ['"]([^'"]*)['"]""", f.read(), re.M)
if not match:
raise RuntimeError("{} doesn't contain __version__".format(filename))
version = match.groups()[0]
return version
def get_long_description():
with open("README.md", encoding="UTF-8") as f:
long_description = f.read()
return long_description
version = get_version()
setup(
name="bardapi",
version="0.1.41",
author="daniel park",
author_email="[email protected]",
description="The python package that returns Response of Google Bard through API.",
long_description=get_long_description(),
long_description_content_type="text/markdown",
url="https://github.com/dsdanielpark/Bard-API",
packages=find_packages(exclude=[]),
python_requires=">=3.6",
install_requires=[
"httpx[http2]>=0.20.0",
"requests",
"colorama",
],
extras_require={
"translate": [
"browser_cookie3",
"deep_translator",
"google-cloud-translate",
"langdetect",
]
},
keywords="Python, API, Bard, Google Bard, Large Language Model, Chatbot API, Google API, Chatbot",
classifiers=[
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Science/Research",
"Natural Language :: English",
"Programming Language :: Python",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"License :: OSI Approved :: MIT License",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
],
entry_points={"console_scripts": ["bard_api=bard_api.cli:main"]},
)