pypi package (pip install `g4f`)

pull/753/head
abc 11 months ago
parent b2dc35609f
commit 6f4d1ca7ba

7
.gitignore vendored

@ -30,5 +30,8 @@ cookie.json
*.pyc
dist/
setup.py
*.egg-info/
*.egg
*.egg-info
build
test.py

@ -5,6 +5,12 @@ By using this repository or any code related to it, you agree to the [legal noti
This (quite censored) New Version of gpt4free, was just released, it may contain bugs, open an issue or contribute a PR when encountering one, some features were disabled.
Docker is for now not available but I would be happy if someone contributes a PR. The g4f GUI will be uploaded soon enough.
### New
- pypi package:
```
pip install g4f
```
## Table of Contents:
- [Getting Started](#getting-started)

@ -5,11 +5,13 @@ pypasser
names
colorama
curl_cffi
aiohttp
flask
flask_cors
streamlit
selenium
fake-useragent
twocaptcha
https://github.com/AI-Yash/st-chat/archive/refs/pull/24/head.zip
pydantic
pymailtm
Levenshtein
@ -18,4 +20,6 @@ mailgw_temporary_email
pycryptodome
random-password-generator
numpy>=1.22.2 # not directly required, pinned by Snyk to avoid a vulnerability
tornado>=6.3.2 # not directly required, pinned by Snyk to avoid a vulnerability
tornado>=6.3.2 # not directly required, pinned by Snyk to avoid a vulnerability
PyExecJS
browser_cookie3

@ -1,20 +0,0 @@
[build-system]
requires = ["setuptools", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "gpt4free"
version = "0.2.0"
description = ""
authors = []
license = { text = "GPL-3.0" }
readme = "README.md"
requires-python = ">=3.10"
dynamic = ["dependencies"]
[tool.setuptools.packages.find]
include = ["g4f*"]
[tool.setuptools.dynamic]
dependencies = {file = ["requirements.txt"]}

@ -1,26 +1,9 @@
websocket-client
requests
tls-client
pypasser
names
colorama
pycryptodome
curl_cffi
aiohttp
flask
flask_cors
streamlit
selenium
fake-useragent
twocaptcha
streamlit-chat@https://github.com/AI-Yash/st-chat/archive/refs/pull/24/head.zip
pydantic
pymailtm
Levenshtein
retrying
mailgw_temporary_email
pycryptodome
random-password-generator
numpy>=1.22.2 # not directly required, pinned by Snyk to avoid a vulnerability
tornado>=6.3.2 # not directly required, pinned by Snyk to avoid a vulnerability
PyExecJS
asyncio
certifi
Providers
browser_cookie3
websockets
execjs

@ -0,0 +1,36 @@
from setuptools import setup, find_packages
import codecs
import os
here = os.path.abspath(os.path.dirname(__file__))
with codecs.open(os.path.join(here, "README.md"), encoding="utf-8") as fh:
long_description = "\n" + fh.read()
with open('requirements.txt') as f:
required = f.read().splitlines()
VERSION = '0.0.1'
DESCRIPTION = 'The official gpt4free repository | various collection of powerful language models'
# Setting up
setup(
name="g4f",
version=VERSION,
author="Tekky",
author_email="<support@g4f.ai>",
description=DESCRIPTION,
long_description_content_type="text/markdown",
long_description=long_description,
packages=find_packages(),
install_requires=required,
keywords=['python', 'chatbot', 'reverse-engineering', 'openai', 'chatbots', 'gpt', 'language-model', 'gpt-3', 'gpt3', 'openai-api', 'gpt-4', 'gpt4', 'chatgpt', 'chatgpt-api', 'openai-chatgpt', 'chatgpt-free', 'chatgpt-4', 'chatgpt4','chatgpt4-api', 'free', 'free-gpt', 'gpt4free', 'g4f'],
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",
]
)
Loading…
Cancel
Save