From a6a27ec4f130eab055863ac4721876e360fe4da1 Mon Sep 17 00:00:00 2001 From: Alexander Korataev Date: Tue, 24 Oct 2023 23:26:43 +0700 Subject: [PATCH] Add README.md and setup.py --- README.md | 4 ++++ requirements.txt | 18 ++++++++++++++++++ setup.py | 24 ++++++++++++++++++++++++ 3 files changed, 46 insertions(+) create mode 100644 setup.py diff --git a/README.md b/README.md index c61086c..ed3406d 100644 --- a/README.md +++ b/README.md @@ -9,6 +9,10 @@ To install langchain_g4f, run the following command: ```shell pip install git+https://github.com/MIDORIBIN/langchain-gpt4free.git ``` +or +```shell +pip install langchain-gpt4free +``` This command will install langchain_g4f. diff --git a/requirements.txt b/requirements.txt index d3457a4..d05d7ee 100644 --- a/requirements.txt +++ b/requirements.txt @@ -12,8 +12,10 @@ certifi==2023.7.22 cffi==1.16.0 charset-normalizer==3.3.1 click==8.1.7 +cryptography==41.0.5 curl-cffi==0.5.9 dataclasses-json==0.6.1 +docutils==0.20.1 duckduckgo-search==3.9.3 Flask==3.0.0 Flask-Cors==4.0.0 @@ -27,25 +29,33 @@ httpcore==0.18.0 httpx==0.25.0 hyperframe==6.0.1 idna==3.4 +importlib-metadata==6.8.0 itsdangerous==2.1.2 +jaraco.classes==3.3.0 jeepney==0.8.0 Jinja2==3.1.2 Js2Py==0.74 jsonpatch==1.33 jsonpointer==2.4 +keyring==24.2.0 langchain==0.0.321 langsmith==0.0.49 loguru==0.7.2 lxml==4.9.3 lz4==4.3.2 +markdown-it-py==3.0.0 MarkupSafe==2.1.3 marshmallow==3.20.1 +mdurl==0.1.2 +more-itertools==10.1.0 multidict==6.0.4 mypy-extensions==1.0.0 nest-asyncio==1.5.8 +nh3==0.2.14 numpy==1.26.1 packaging==23.2 Pillow==10.1.0 +pkginfo==1.9.6 platformdirs==3.11.0 pycparser==2.21 pycryptodome==3.19.0 @@ -53,16 +63,23 @@ pycryptodomex==3.19.0 pydantic==2.4.2 pydantic_core==2.10.1 PyExecJS==1.5.1 +Pygments==2.16.1 pyjsparser==2.7.1 PyYAML==6.0.1 +readme-renderer==42.0 regex==2023.10.3 requests==2.31.0 +requests-toolbelt==1.0.0 +rfc3986==2.0.0 +rich==13.6.0 +SecretStorage==3.3.3 six==1.16.0 sniffio==1.3.0 socksio==1.0.0 SQLAlchemy==2.0.22 tenacity==8.2.3 tiktoken==0.5.1 +twine==4.0.2 typing-inspect==0.9.0 typing_extensions==4.8.0 tzlocal==5.2 @@ -71,3 +88,4 @@ waitress==2.1.2 websockets==12.0 Werkzeug==3.0.0 yarl==1.9.2 +zipp==3.17.0 diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..1afe402 --- /dev/null +++ b/setup.py @@ -0,0 +1,24 @@ +from setuptools import setup, find_packages + + +def load_requirements(filename): + with open(filename, 'r') as file: + return file.read().splitlines() + +setup( + name="langchain_g4f", + version="0.1", + packages=find_packages(), + description="LangChain gpt4free is an open-source project that assists in building applications using LLM (Large Language Models) and provides free access to GPT4/3.5.", + author="Alexander", + author_email="alexandkorataev@gmain.com", + url="https://github.com/AlexanderKorataev/langchain-gpt4free", + license="MIT License", + classifiers=[ + "Programming Language :: Python :: 3", + "License :: OSI Approved :: MIT License", + "Operating System :: OS Independent", + ], + install_requires=load_requirements("requirements.txt"), +) +