File size: 4,168 Bytes
a4b70d9 |
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 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 |
import os
from setuptools import find_packages, setup
current_dir = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(current_dir, 'README.md'), "r", encoding="utf-8") as f:
long_description = f.read()
long_description = long_description.replace("[!NOTE]", "")
INSTALL_REQUIRE = [
"requests",
"aiohttp",
"brotli",
"pycryptodome",
"nest_asyncio",
]
EXTRA_REQUIRE = {
'all': [
"curl_cffi>=0.6.2",
"certifi",
"browser_cookie3", # get_cookies
"ddgs", # web_search
"beautifulsoup4", # web_search and bing.create_images
"platformdirs",
"aiohttp_socks", # proxy
"pillow", # image
"cairosvg", # svg image
"werkzeug", "flask", # gui
"fastapi", # api
"uvicorn", # api
"nodriver",
"python-multipart",
"a2wsgi",
"pywebview",
"plyer",
"setuptools",
"markitdown[all]",
"python-dotenv"
],
'slim': [
"curl_cffi>=0.6.2",
"certifi",
"browser_cookie3",
"ddgs", # web_search
"beautifulsoup4", # web_search and bing.create_images
"aiohttp_socks", # proxy
"pillow", # image
"werkzeug", "flask", # gui
"fastapi", # api
"uvicorn", # api
"python-multipart",
"a2wsgi",
"markitdown[all]",
"python-dotenv"
],
"image": [
"pillow",
"cairosvg",
"beautifulsoup4"
],
"webview": [
"pywebview",
"platformdirs",
"plyer",
"cryptography",
],
"api": [
"loguru", "fastapi",
"uvicorn",
"python-multipart",
],
"gui": [
"werkzeug", "flask",
"beautifulsoup4", "pillow",
"ddgs",
],
"search": [
"beautifulsoup4",
"pillow",
"ddgs",
],
"local": [
"gpt4all"
],
"files": [
"beautifulsoup4",
"markitdown[all]"
]
}
DESCRIPTION = (
'The official gpt4free repository | various collection of powerful language models'
)
# Setting up
setup(
name='g4f',
version=os.environ.get("G4F_VERSION"),
author='Tekky',
author_email='<support@g4f.ai>',
description=DESCRIPTION,
long_description_content_type='text/markdown',
long_description=long_description,
packages=find_packages(),
package_data={
'g4f': []
},
include_package_data=True,
install_requires=INSTALL_REQUIRE,
extras_require=EXTRA_REQUIRE,
entry_points={
'console_scripts': ['g4f=g4f.cli:main'],
},
url='https://github.com/xtekky/gpt4free', # Link to your GitHub repository
project_urls={
'Source Code': 'https://github.com/xtekky/gpt4free', # GitHub link
'Bug Tracker': 'https://github.com/xtekky/gpt4free/issues', # Link to issue tracker
},
keywords=[
"gpt4free",
"gpt4free.js",
"g4f",
"g4f.dev",
"javascript",
"npm",
"browser",
"gpt",
"chatgpt",
"deepseek",
"openai",
"ai",
"client",
"sdk",
"free",
"ai",
"gpt-4",
"gpt-4o",
"chat",
"api",
"browser",
"ai",
"ai",
"js",
"client",
"text",
"generation",
"image",
"generation",
"in-browser",
"ai",
"frontend",
"ai",
"openai",
"alternative",
"javascript",
"ai",
"library",
"nodejs",
"prompt",
"engineering",
"chatbot",
"ai",
"integration"
],
classifiers=[
'Development Status :: 2 - Pre-Alpha',
'Intended Audience :: Developers',
'Programming Language :: Python :: 3',
'Operating System :: Unix',
'Operating System :: MacOS :: MacOS X',
'Operating System :: Microsoft :: Windows',
],
)
|