Name | schat JSON |
Version |
0.1.0
JSON |
| download |
home_page | https://github.com/HFrost0 |
Summary | Chat with OpenAI ChatGPT in your command line, just for simple and ez |
upload_time | 2023-03-11 03:50:58 |
maintainer | |
docs_url | None |
author | HFrost0 |
requires_python | >=3.10,<4 |
license | MIT |
keywords |
chatgpt
cli
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# Simple-Chat
Chat with OpenAI ChatGPT in your command line, just for simple and ez.
* support markdown show, thanks for [rich](https://github.com/Textualize/rich)
## setup
```shell
pip install git+https://github.com/HFrost0/Simple-Chat.git
```
Before you start, pls set your environment variable
```shell
export OPENAI_API_KEY=xxxxxxxxxxxxxxx
```
You can obtain your openai api key by [url](http://platform.openai.com)
## Usage
just use command `schat` to communicate with ChatGPT
```shell
schat
```
example:
```
schat
πPlease Input: Can u write a python hello world program and explain it
ChatGPT: ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
Yes, I can write a Python hello world program and explain it.
Here's the code:
print("Hello, World!")
Explanation:
β’ print() is a built-in Python function used to display text on the screen.
β’ "Hello, World!" is the text we want to display. It's enclosed in double quotes to indicate that it's a string literal.
β’ The entire statement is terminated by a parenthesis followed by a newline character, which tells Python to execute the statement and move on to the next line.
When we run this program, the output will be:
Hello, World!
This is a very simple program, but it's often used as a first example when learning a new programming language because it's easy to understand and illustrates the basic syntax of the language.
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ token prompt:73, completion:167, total:240
πPlease Input: ....
```
Raw data
{
"_id": null,
"home_page": "https://github.com/HFrost0",
"name": "schat",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.10,<4",
"maintainer_email": "",
"keywords": "ChatGPT,CLI",
"author": "HFrost0",
"author_email": "hhlfrost@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/3d/d7/9222586ede715ee11d990d9e1a6aff0a861061e01e977f596a2a65f93a70/schat-0.1.0.tar.gz",
"platform": null,
"description": "# Simple-Chat\nChat with OpenAI ChatGPT in your command line, just for simple and ez.\n\n* support markdown show, thanks for [rich](https://github.com/Textualize/rich)\n\n## setup\n```shell\npip install git+https://github.com/HFrost0/Simple-Chat.git\n```\n\nBefore you start, pls set your environment variable\n```shell\nexport OPENAI_API_KEY=xxxxxxxxxxxxxxx\n```\nYou can obtain your openai api key by [url](http://platform.openai.com)\n\n## Usage\njust use command `schat` to communicate with ChatGPT\n```shell\nschat\n```\nexample:\n```\nschat\n\n\ud83d\ude4bPlease Input: Can u write a python hello world program and explain it\nChatGPT: \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\nYes, I can write a Python hello world program and explain it. \n\nHere's the code: \n\n \n print(\"Hello, World!\") \n \n\nExplanation: \n\n \u2022 print() is a built-in Python function used to display text on the screen. \n \u2022 \"Hello, World!\" is the text we want to display. It's enclosed in double quotes to indicate that it's a string literal. \n \u2022 The entire statement is terminated by a parenthesis followed by a newline character, which tells Python to execute the statement and move on to the next line. \n\nWhen we run this program, the output will be: \n\n \n Hello, World! \n \n\nThis is a very simple program, but it's often used as a first example when learning a new programming language because it's easy to understand and illustrates the basic syntax of the language. \n\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 token prompt:73, completion:167, total:240\n\n\ud83d\ude4bPlease Input: ....\n```\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Chat with OpenAI ChatGPT in your command line, just for simple and ez",
"version": "0.1.0",
"split_keywords": [
"chatgpt",
"cli"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "0b27d5b2f223756e5c6145e5e025ef9f86daaeb411584c25a11cb44dca49ed2a",
"md5": "11edad0dbd2c931dd0a153250901bf60",
"sha256": "9b9b832fe9dddacfda3585bc28cb3d48f86c94c464696bcccbf0f49fd85fc05a"
},
"downloads": -1,
"filename": "schat-0.1.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "11edad0dbd2c931dd0a153250901bf60",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.10,<4",
"size": 7108,
"upload_time": "2023-03-11T03:50:56",
"upload_time_iso_8601": "2023-03-11T03:50:56.134644Z",
"url": "https://files.pythonhosted.org/packages/0b/27/d5b2f223756e5c6145e5e025ef9f86daaeb411584c25a11cb44dca49ed2a/schat-0.1.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "3dd79222586ede715ee11d990d9e1a6aff0a861061e01e977f596a2a65f93a70",
"md5": "daa70fafd493e7700107a9e6a1b8a49a",
"sha256": "1616ebeffe50fd1dc9bdf8336fbf9c73a50a61630a99d913b8df97909d099c8d"
},
"downloads": -1,
"filename": "schat-0.1.0.tar.gz",
"has_sig": false,
"md5_digest": "daa70fafd493e7700107a9e6a1b8a49a",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.10,<4",
"size": 6284,
"upload_time": "2023-03-11T03:50:58",
"upload_time_iso_8601": "2023-03-11T03:50:58.151610Z",
"url": "https://files.pythonhosted.org/packages/3d/d7/9222586ede715ee11d990d9e1a6aff0a861061e01e977f596a2a65f93a70/schat-0.1.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-03-11 03:50:58",
"github": false,
"gitlab": false,
"bitbucket": false,
"lcname": "schat"
}