MST-AI 0.1.0__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.
@@ -0,0 +1 @@
1
+ from .chat_bot import ChatBot
@@ -0,0 +1,31 @@
1
+ import requests
2
+
3
+ class ChatBot:
4
+ def __init__(self):
5
+
6
+ def chat(self, message):
7
+ try:
8
+ url = f"https://developer-server-g05b.onrender.com/chat_ai"
9
+
10
+ data = {
11
+ "message": message
12
+ }
13
+
14
+ res = requests.post(url, json=data, timeout=10)
15
+
16
+ if res.status_code == 200:
17
+ return res.json()
18
+ else:
19
+ return {"error": f"Status code: {res.status_code}"}
20
+
21
+ except requests.exceptions.ConnectionError as e:
22
+ return {"error": f"Connection Error: {e}"}
23
+
24
+ except requests.exceptions.Timeout as e:
25
+ return {"error": f"Timeout Error: {e}"}
26
+
27
+ except requests.exceptions.RequestException as e:
28
+ return {"error": f"Request Error: {e}"}
29
+
30
+ except Exception as e:
31
+ return {"error": f"Unknown Error: {e}"}
mst_ai-0.1.0/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Rocky
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.
@@ -0,0 +1,48 @@
1
+ Metadata-Version: 2.4
2
+ Name: MST_AI
3
+ Version: 0.1.0
4
+ Summary: A simple AI ChatBot Python library
5
+ Home-page: https://github.com/Rocky420-python/MTS
6
+ Author: Rocky420-python
7
+ Author-email: p13077795@gmail.com
8
+ Classifier: Programming Language :: Python :: 3
9
+ Classifier: License :: OSI Approved :: MIT License
10
+ Classifier: Operating System :: OS Independent
11
+ Requires-Python: >=3.8
12
+ Description-Content-Type: text/markdown
13
+ License-File: LICENSE
14
+ Requires-Dist: requests>=2.28.0
15
+ Dynamic: author
16
+ Dynamic: author-email
17
+ Dynamic: classifier
18
+ Dynamic: description
19
+ Dynamic: description-content-type
20
+ Dynamic: home-page
21
+ Dynamic: license-file
22
+ Dynamic: requires-dist
23
+ Dynamic: requires-python
24
+ Dynamic: summary
25
+
26
+ # MyChatBot
27
+
28
+ A simple Python library to interact with your AI server via API.
29
+ Send messages to your AI server and receive responses easily using a clean Python interface.
30
+
31
+ ---
32
+
33
+ ## 🚀 Features
34
+
35
+ - Easy to use `ChatBot` class
36
+ - Supports custom server URL
37
+ - Handles connection, timeout, and request errors gracefully
38
+ - Optional API key support
39
+ - Ready to integrate with any Python project
40
+
41
+ ---
42
+
43
+ ## 📦 Installation
44
+
45
+ Clone or download this library and install locally:
46
+
47
+ ```bash
48
+ pip install MST
@@ -0,0 +1,10 @@
1
+ LICENSE
2
+ README.md
3
+ setup.py
4
+ AI_CHAT/__init__.py
5
+ AI_CHAT/chat_bot.py
6
+ MST_AI.egg-info/PKG-INFO
7
+ MST_AI.egg-info/SOURCES.txt
8
+ MST_AI.egg-info/dependency_links.txt
9
+ MST_AI.egg-info/requires.txt
10
+ MST_AI.egg-info/top_level.txt
@@ -0,0 +1 @@
1
+ requests>=2.28.0
@@ -0,0 +1 @@
1
+ AI_CHAT
mst_ai-0.1.0/PKG-INFO ADDED
@@ -0,0 +1,48 @@
1
+ Metadata-Version: 2.4
2
+ Name: MST_AI
3
+ Version: 0.1.0
4
+ Summary: A simple AI ChatBot Python library
5
+ Home-page: https://github.com/Rocky420-python/MTS
6
+ Author: Rocky420-python
7
+ Author-email: p13077795@gmail.com
8
+ Classifier: Programming Language :: Python :: 3
9
+ Classifier: License :: OSI Approved :: MIT License
10
+ Classifier: Operating System :: OS Independent
11
+ Requires-Python: >=3.8
12
+ Description-Content-Type: text/markdown
13
+ License-File: LICENSE
14
+ Requires-Dist: requests>=2.28.0
15
+ Dynamic: author
16
+ Dynamic: author-email
17
+ Dynamic: classifier
18
+ Dynamic: description
19
+ Dynamic: description-content-type
20
+ Dynamic: home-page
21
+ Dynamic: license-file
22
+ Dynamic: requires-dist
23
+ Dynamic: requires-python
24
+ Dynamic: summary
25
+
26
+ # MyChatBot
27
+
28
+ A simple Python library to interact with your AI server via API.
29
+ Send messages to your AI server and receive responses easily using a clean Python interface.
30
+
31
+ ---
32
+
33
+ ## 🚀 Features
34
+
35
+ - Easy to use `ChatBot` class
36
+ - Supports custom server URL
37
+ - Handles connection, timeout, and request errors gracefully
38
+ - Optional API key support
39
+ - Ready to integrate with any Python project
40
+
41
+ ---
42
+
43
+ ## 📦 Installation
44
+
45
+ Clone or download this library and install locally:
46
+
47
+ ```bash
48
+ pip install MST
mst_ai-0.1.0/README.md ADDED
@@ -0,0 +1,23 @@
1
+ # MyChatBot
2
+
3
+ A simple Python library to interact with your AI server via API.
4
+ Send messages to your AI server and receive responses easily using a clean Python interface.
5
+
6
+ ---
7
+
8
+ ## 🚀 Features
9
+
10
+ - Easy to use `ChatBot` class
11
+ - Supports custom server URL
12
+ - Handles connection, timeout, and request errors gracefully
13
+ - Optional API key support
14
+ - Ready to integrate with any Python project
15
+
16
+ ---
17
+
18
+ ## 📦 Installation
19
+
20
+ Clone or download this library and install locally:
21
+
22
+ ```bash
23
+ pip install MST
mst_ai-0.1.0/setup.cfg ADDED
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
mst_ai-0.1.0/setup.py ADDED
@@ -0,0 +1,22 @@
1
+ from setuptools import setup, find_packages
2
+
3
+ setup(
4
+ name="MST_AI", # your unique PyPI package name
5
+ version="0.1.0",
6
+ author="Rocky420-python",
7
+ author_email="p13077795@gmail.com",
8
+ description="A simple AI ChatBot Python library",
9
+ long_description=open("README.md", encoding="utf-8").read(),
10
+ long_description_content_type="text/markdown",
11
+ url="https://github.com/Rocky420-python/MTS",
12
+ packages=find_packages(),
13
+ python_requires=">=3.8",
14
+ install_requires=[
15
+ "requests>=2.28.0"
16
+ ],
17
+ classifiers=[
18
+ "Programming Language :: Python :: 3",
19
+ "License :: OSI Approved :: MIT License",
20
+ "Operating System :: OS Independent"
21
+ ],
22
+ )