commandchat 0.0.4__tar.gz → 0.0.6__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {commandchat-0.0.4 → commandchat-0.0.6}/LICENSE +21 -21
- {commandchat-0.0.4 → commandchat-0.0.6}/PKG-INFO +74 -65
- {commandchat-0.0.4 → commandchat-0.0.6}/README.md +52 -52
- {commandchat-0.0.4 → commandchat-0.0.6}/commandchat.egg-info/PKG-INFO +74 -65
- {commandchat-0.0.4 → commandchat-0.0.6}/commandchat.egg-info/SOURCES.txt +2 -0
- {commandchat-0.0.4 → commandchat-0.0.6}/occ/CommandChat.py +119 -116
- commandchat-0.0.6/occ/ConvertLogToMarkDown.py +34 -0
- {commandchat-0.0.4 → commandchat-0.0.6}/occ/command/__main__.py +75 -70
- {commandchat-0.0.4 → commandchat-0.0.6}/occ/commons/config.py +99 -99
- {commandchat-0.0.4 → commandchat-0.0.6}/occ/configuration/profile_config.py +36 -36
- {commandchat-0.0.4 → commandchat-0.0.6}/occ/utils/CommonUtil.py +53 -53
- {commandchat-0.0.4 → commandchat-0.0.6}/occ/utils/logger.py +72 -72
- commandchat-0.0.6/pyproject.toml +31 -0
- {commandchat-0.0.4 → commandchat-0.0.6}/setup.cfg +4 -4
- {commandchat-0.0.4 → commandchat-0.0.6}/setup.py +31 -31
- {commandchat-0.0.4 → commandchat-0.0.6}/commandchat.egg-info/dependency_links.txt +0 -0
- {commandchat-0.0.4 → commandchat-0.0.6}/commandchat.egg-info/entry_points.txt +0 -0
- {commandchat-0.0.4 → commandchat-0.0.6}/commandchat.egg-info/requires.txt +0 -0
- {commandchat-0.0.4 → commandchat-0.0.6}/commandchat.egg-info/top_level.txt +0 -0
- {commandchat-0.0.4 → commandchat-0.0.6}/occ/__init__.py +0 -0
- {commandchat-0.0.4 → commandchat-0.0.6}/occ/command/__init__.py +0 -0
- {commandchat-0.0.4 → commandchat-0.0.6}/occ/commons/__init__.py +0 -0
- {commandchat-0.0.4 → commandchat-0.0.6}/occ/configuration/__init__.py +0 -0
- {commandchat-0.0.4 → commandchat-0.0.6}/occ/utils/__init__.py +0 -0
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2023 cxoto
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2023 cxoto
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -1,65 +1,74 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
2
|
-
Name: commandchat
|
|
3
|
-
Version: 0.0.
|
|
4
|
-
Summary: use command to chat with openai models
|
|
5
|
-
Home-page: https://github.com/
|
|
6
|
-
Author: xoto
|
|
7
|
-
Author-email: xxx.tao.c@gmail.com
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
Classifier:
|
|
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
|
-
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: commandchat
|
|
3
|
+
Version: 0.0.6
|
|
4
|
+
Summary: use command to chat with openai models
|
|
5
|
+
Home-page: https://github.com/
|
|
6
|
+
Author: xoto
|
|
7
|
+
Author-email: xoto <xxx.tao.c@gmail.com>
|
|
8
|
+
License: MIT
|
|
9
|
+
Project-URL: Homepage, https://github.com/xoto/commandchat
|
|
10
|
+
Classifier: Programming Language :: Python :: 3
|
|
11
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
12
|
+
Classifier: Operating System :: OS Independent
|
|
13
|
+
Requires-Python: >=3.8
|
|
14
|
+
Description-Content-Type: text/markdown
|
|
15
|
+
License-File: LICENSE
|
|
16
|
+
Requires-Dist: click
|
|
17
|
+
Requires-Dist: Image
|
|
18
|
+
Requires-Dist: openai
|
|
19
|
+
Dynamic: author
|
|
20
|
+
Dynamic: home-page
|
|
21
|
+
Dynamic: license-file
|
|
22
|
+
|
|
23
|
+
[English](README.md) | [中文](README-zh.md)
|
|
24
|
+
|
|
25
|
+
# openai-commandchat
|
|
26
|
+
|
|
27
|
+
## Quick start
|
|
28
|
+
|
|
29
|
+
Use this command line to install the python packages:
|
|
30
|
+
|
|
31
|
+
```bash
|
|
32
|
+
pip3 install commandchat
|
|
33
|
+
```
|
|
34
|
+
Or use the following command line to guide you to a specific python version, if you have multiple versions of python locally
|
|
35
|
+
```bash
|
|
36
|
+
python3.x -m pip3 install commandchat
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
## Features
|
|
42
|
+
- You can set the api_key for openai with a simple command, and you can distinguish the key for your multiple accounts with a profile (default `default` if you don't specify it): `occ configure -profile`
|
|
43
|
+
- You can use the command `occ chat` to chat with the chat-GPT model `gpt-3.5-turbo`.
|
|
44
|
+
### To be implemented
|
|
45
|
+
- You can use the `occ image -desc` command with chat-GPT's model to describe the image you want to generate, giving you back a link to the image.
|
|
46
|
+
- You can use the `occ xxx -yyy` command to chat with a specified model of chat-GPT to complete a task you specify or give you advice.
|
|
47
|
+
- Others not yet thought of
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
## Requirements
|
|
51
|
+
|
|
52
|
+
A terminal with Python and pip installed:
|
|
53
|
+
|
|
54
|
+
- Installed python environment and python version >= 3.9
|
|
55
|
+
- Install the openai package
|
|
56
|
+
|
|
57
|
+
## Installing
|
|
58
|
+
|
|
59
|
+
```bash
|
|
60
|
+
pip3 install commandchat
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
## Uninstall
|
|
64
|
+
|
|
65
|
+
```bash
|
|
66
|
+
pip3 uninstall commandchat
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
## Feedback or questions
|
|
70
|
+
- You can send an email to: ``xxx.tao.c@gmail.com`` or ``xoto@outlook.be``
|
|
71
|
+
|
|
72
|
+
## License
|
|
73
|
+
MIT
|
|
74
|
+
|
|
@@ -1,52 +1,52 @@
|
|
|
1
|
-
[English](README.md) | [中文](README-zh.md)
|
|
2
|
-
|
|
3
|
-
# openai-commandchat
|
|
4
|
-
|
|
5
|
-
## Quick start
|
|
6
|
-
|
|
7
|
-
Use this command line to install the python packages:
|
|
8
|
-
|
|
9
|
-
```bash
|
|
10
|
-
pip3 install commandchat
|
|
11
|
-
```
|
|
12
|
-
Or use the following command line to guide you to a specific python version, if you have multiple versions of python locally
|
|
13
|
-
```bash
|
|
14
|
-
python3.x -m pip3 install commandchat
|
|
15
|
-
```
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
## Features
|
|
20
|
-
- You can set the api_key for openai with a simple command, and you can distinguish the key for your multiple accounts with a profile (default `default` if you don't specify it): `occ configure -profile`
|
|
21
|
-
- You can use the command `occ chat` to chat with the chat-GPT model `gpt-3.5-turbo`.
|
|
22
|
-
### To be implemented
|
|
23
|
-
- You can use the `occ image -desc` command with chat-GPT's model to describe the image you want to generate, giving you back a link to the image.
|
|
24
|
-
- You can use the `occ xxx -yyy` command to chat with a specified model of chat-GPT to complete a task you specify or give you advice.
|
|
25
|
-
- Others not yet thought of
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
## Requirements
|
|
29
|
-
|
|
30
|
-
A terminal with Python and pip installed:
|
|
31
|
-
|
|
32
|
-
- Installed python environment and python version >= 3.9
|
|
33
|
-
- Install the openai package
|
|
34
|
-
|
|
35
|
-
## Installing
|
|
36
|
-
|
|
37
|
-
```bash
|
|
38
|
-
pip3 install commandchat
|
|
39
|
-
```
|
|
40
|
-
|
|
41
|
-
## Uninstall
|
|
42
|
-
|
|
43
|
-
```bash
|
|
44
|
-
pip3 uninstall commandchat
|
|
45
|
-
```
|
|
46
|
-
|
|
47
|
-
## Feedback or questions
|
|
48
|
-
- You can send an email to: ``xxx.tao.c@gmail.com`` or ``xoto@outlook.be``
|
|
49
|
-
|
|
50
|
-
## License
|
|
51
|
-
MIT
|
|
52
|
-
|
|
1
|
+
[English](README.md) | [中文](README-zh.md)
|
|
2
|
+
|
|
3
|
+
# openai-commandchat
|
|
4
|
+
|
|
5
|
+
## Quick start
|
|
6
|
+
|
|
7
|
+
Use this command line to install the python packages:
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
pip3 install commandchat
|
|
11
|
+
```
|
|
12
|
+
Or use the following command line to guide you to a specific python version, if you have multiple versions of python locally
|
|
13
|
+
```bash
|
|
14
|
+
python3.x -m pip3 install commandchat
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
## Features
|
|
20
|
+
- You can set the api_key for openai with a simple command, and you can distinguish the key for your multiple accounts with a profile (default `default` if you don't specify it): `occ configure -profile`
|
|
21
|
+
- You can use the command `occ chat` to chat with the chat-GPT model `gpt-3.5-turbo`.
|
|
22
|
+
### To be implemented
|
|
23
|
+
- You can use the `occ image -desc` command with chat-GPT's model to describe the image you want to generate, giving you back a link to the image.
|
|
24
|
+
- You can use the `occ xxx -yyy` command to chat with a specified model of chat-GPT to complete a task you specify or give you advice.
|
|
25
|
+
- Others not yet thought of
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
## Requirements
|
|
29
|
+
|
|
30
|
+
A terminal with Python and pip installed:
|
|
31
|
+
|
|
32
|
+
- Installed python environment and python version >= 3.9
|
|
33
|
+
- Install the openai package
|
|
34
|
+
|
|
35
|
+
## Installing
|
|
36
|
+
|
|
37
|
+
```bash
|
|
38
|
+
pip3 install commandchat
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
## Uninstall
|
|
42
|
+
|
|
43
|
+
```bash
|
|
44
|
+
pip3 uninstall commandchat
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
## Feedback or questions
|
|
48
|
+
- You can send an email to: ``xxx.tao.c@gmail.com`` or ``xoto@outlook.be``
|
|
49
|
+
|
|
50
|
+
## License
|
|
51
|
+
MIT
|
|
52
|
+
|
|
@@ -1,65 +1,74 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
2
|
-
Name: commandchat
|
|
3
|
-
Version: 0.0.
|
|
4
|
-
Summary: use command to chat with openai models
|
|
5
|
-
Home-page: https://github.com/
|
|
6
|
-
Author: xoto
|
|
7
|
-
Author-email: xxx.tao.c@gmail.com
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
Classifier:
|
|
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
|
-
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: commandchat
|
|
3
|
+
Version: 0.0.6
|
|
4
|
+
Summary: use command to chat with openai models
|
|
5
|
+
Home-page: https://github.com/
|
|
6
|
+
Author: xoto
|
|
7
|
+
Author-email: xoto <xxx.tao.c@gmail.com>
|
|
8
|
+
License: MIT
|
|
9
|
+
Project-URL: Homepage, https://github.com/xoto/commandchat
|
|
10
|
+
Classifier: Programming Language :: Python :: 3
|
|
11
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
12
|
+
Classifier: Operating System :: OS Independent
|
|
13
|
+
Requires-Python: >=3.8
|
|
14
|
+
Description-Content-Type: text/markdown
|
|
15
|
+
License-File: LICENSE
|
|
16
|
+
Requires-Dist: click
|
|
17
|
+
Requires-Dist: Image
|
|
18
|
+
Requires-Dist: openai
|
|
19
|
+
Dynamic: author
|
|
20
|
+
Dynamic: home-page
|
|
21
|
+
Dynamic: license-file
|
|
22
|
+
|
|
23
|
+
[English](README.md) | [中文](README-zh.md)
|
|
24
|
+
|
|
25
|
+
# openai-commandchat
|
|
26
|
+
|
|
27
|
+
## Quick start
|
|
28
|
+
|
|
29
|
+
Use this command line to install the python packages:
|
|
30
|
+
|
|
31
|
+
```bash
|
|
32
|
+
pip3 install commandchat
|
|
33
|
+
```
|
|
34
|
+
Or use the following command line to guide you to a specific python version, if you have multiple versions of python locally
|
|
35
|
+
```bash
|
|
36
|
+
python3.x -m pip3 install commandchat
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
## Features
|
|
42
|
+
- You can set the api_key for openai with a simple command, and you can distinguish the key for your multiple accounts with a profile (default `default` if you don't specify it): `occ configure -profile`
|
|
43
|
+
- You can use the command `occ chat` to chat with the chat-GPT model `gpt-3.5-turbo`.
|
|
44
|
+
### To be implemented
|
|
45
|
+
- You can use the `occ image -desc` command with chat-GPT's model to describe the image you want to generate, giving you back a link to the image.
|
|
46
|
+
- You can use the `occ xxx -yyy` command to chat with a specified model of chat-GPT to complete a task you specify or give you advice.
|
|
47
|
+
- Others not yet thought of
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
## Requirements
|
|
51
|
+
|
|
52
|
+
A terminal with Python and pip installed:
|
|
53
|
+
|
|
54
|
+
- Installed python environment and python version >= 3.9
|
|
55
|
+
- Install the openai package
|
|
56
|
+
|
|
57
|
+
## Installing
|
|
58
|
+
|
|
59
|
+
```bash
|
|
60
|
+
pip3 install commandchat
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
## Uninstall
|
|
64
|
+
|
|
65
|
+
```bash
|
|
66
|
+
pip3 uninstall commandchat
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
## Feedback or questions
|
|
70
|
+
- You can send an email to: ``xxx.tao.c@gmail.com`` or ``xoto@outlook.be``
|
|
71
|
+
|
|
72
|
+
## License
|
|
73
|
+
MIT
|
|
74
|
+
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
LICENSE
|
|
2
2
|
README.md
|
|
3
|
+
pyproject.toml
|
|
3
4
|
setup.py
|
|
4
5
|
commandchat.egg-info/PKG-INFO
|
|
5
6
|
commandchat.egg-info/SOURCES.txt
|
|
@@ -8,6 +9,7 @@ commandchat.egg-info/entry_points.txt
|
|
|
8
9
|
commandchat.egg-info/requires.txt
|
|
9
10
|
commandchat.egg-info/top_level.txt
|
|
10
11
|
occ/CommandChat.py
|
|
12
|
+
occ/ConvertLogToMarkDown.py
|
|
11
13
|
occ/__init__.py
|
|
12
14
|
occ/command/__init__.py
|
|
13
15
|
occ/command/__main__.py
|