Skip to content

Commit

Permalink
pypi package (pip install g4f)
Browse files Browse the repository at this point in the history
  • Loading branch information
xtekky committed Jul 17, 2023
1 parent b2dc356 commit 6f4d1ca
Show file tree
Hide file tree
Showing 6 changed files with 59 additions and 47 deletions.
7 changes: 5 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,8 @@ cookie.json
*.pyc

dist/

setup.py
*.egg-info/
*.egg
*.egg-info
build
test.py
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
8 changes: 6 additions & 2 deletions g4f/.v1/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
20 changes: 0 additions & 20 deletions pyproject.toml

This file was deleted.

29 changes: 6 additions & 23 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -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
36 changes: 36 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -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="<[email protected]>",
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",
]
)

0 comments on commit 6f4d1ca

Please sign in to comment.