S-Ai-emo123 0.0.1__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,63 @@
1
+ """This AI is like shit."""
2
+ import random
3
+ import json
4
+
5
+ wl = {'Traceback': ['(most'], '(most': ['recent'], 'recent': ['call'], 'call': ['last):'], 'last):': ['File'], 'File': ['"<stdin>",'], '"<stdin>",': ['line'], 'line': ['1,', '1', '1.'], '1,': ['in'], 'in': ['<module>', 'position', 'range(128).', 'your', 'next'], '<module>': ['NameError:', 'TypeError:', 'ValueError:', 'IndexError:', 'KeyError:', 'AttributeError:', 'ZeroDivisionError:', 'ImportError:', 'ModuleNotFoundError:', 'FileNotFoundError:', 'PermissionError:', 'ConnectionError:', 'TimeoutError:', 'MemoryError:', 'RecursionError:', 'StopIteration:', 'SyntaxError:', 'IndentationError:', 'TabError:', 'UnicodeDecodeError:', 'UnicodeEncodeError:', 'JSONDecodeError:', 'RuntimeError:'], 'NameError:': ['name'], 'name': ["'a'", "'intelligence'"], "'a'": ['is'], 'is': ['not', 'poorly', 'out', 'broken.'], 'not': ['defined.', 'callable.', 'in', 'convert', 'subscriptable.', 'exist', 'allowed', 'have'], 'defined.': ['Did'], 'Did': ['you'], 'you': ['mean:', 'forgot'], 'mean:': ["'ai'?", "'incompetence'?"], "'ai'?": ['Traceback'], 'TypeError:': ["'int'", "'NoneType'", "'AOS'"], "'int'": ['object'], 'object': ['is', 'has'], 'callable.': ['Traceback'], 'ValueError:': ['invalid', 'could'], 'invalid': ['literal', 'syntax.', 'start'], 'literal': ['for'], 'for': ['int()'], 'int()': ['with'], 'with': ['base', 'it.'], 'base': ['10:'], '10:': ["'abc'"], "'abc'": ['Traceback'], 'IndexError:': ['list'], 'list': ['index'], 'index': ['out', 'shit.'], 'out': ['of', 'after'], 'of': ['range.', 'memory.', 'tabs', "life'.", 'file.'], 'range.': ['Traceback', 'FloatingPointError:'], 'KeyError:': ["'key_not_found'", "'common"], "'key_not_found'": ['Traceback'], 'AttributeError:': ["'NoneType'", "'str'", "'Human'"], "'NoneType'": ['object'], 'has': ['no', 'detected'], 'no': ['attribute', 'more'], 'attribute': ["'append'.", "'intelligence'."], "'append'.": ['Traceback'], 'ZeroDivisionError:': ['division'], 'division': ['by'], 'by': ['zero.', 'reality.', 'your'], 'zero.': ['Traceback', 'You'], 'ImportError:': ['No'], 'No': ['module', 'such'], 'module': ['named'], 'named': ["'this_is_fake'.", "'requests'.", "'success'.", "'happiness'."], "'this_is_fake'.": ['Traceback'], 'ModuleNotFoundError:': ['No'], "'requests'.": ['Traceback'], 'FileNotFoundError:': ['[Errno'], '[Errno': ['2]', '13]', '32]'], '2]': ['No'], 'such': ['file'], 'file': ['or'], 'or': ['directory:'], 'directory:': ["'shit.txt'.", "'purpose.txt'."], "'shit.txt'.": ['Traceback'], 'PermissionError:': ['[Errno'], '13]': ['Permission'], 'Permission': ['denied:', 'denied.'], 'denied:': ["'/root'."], "'/root'.": ['Traceback'], 'ConnectionError:': ['Connection'], 'Connection': ['refused.', 'refused'], 'refused.': ['Traceback'], 'TimeoutError:': ['timed'], 'timed': ['out'], 'after': ['30'], '30': ['seconds.'], 'seconds.': ['Traceback', 'Please'], 'MemoryError:': ['out'], 'memory.': ['Traceback', 'Please'], 'RecursionError:': ['maximum'], 'maximum': ['recursion'], 'recursion': ['depth'], 'depth': ['exceeded.', 'exceeded'], 'exceeded.': ['Traceback'], 'StopIteration:': ['iteration', 'no'], 'iteration': ['stopped.'], 'stopped.': ['Traceback'], 'SyntaxError:': ['invalid'], 'syntax.': ['Perhaps'], 'Perhaps': ['you'], 'forgot': ['a'], 'a': ['comma?', 'Python'], 'comma?': ['Traceback', 'File'], 'IndentationError:': ['unexpected'], 'unexpected': ['indent.', 'end'], 'indent.': ['Traceback', 'Your'], 'TabError:': ['inconsistent'], 'inconsistent': ['use'], 'use': ['of'], 'tabs': ['and'], 'and': ['spaces.'], 'spaces.': ['Traceback', 'Make'], 'UnicodeDecodeError:': ["'utf-8'"], "'utf-8'": ['codec'], 'codec': ["can't"], "can't": ['decode', 'encode', 'index', 'compute'], 'decode': ['byte'], 'byte': ['0xff', '0xDEADBEEF'], '0xff': ['in'], 'position': ['0:', '0.'], '0:': ['invalid', 'ordinal'], 'start': ['byte.'], 'byte.': ['Traceback'], 'UnicodeEncodeError:': ["'ascii'"], "'ascii'": ['codec'], 'encode': ['character'], 'character': ["'\\u4e2d'", "'\\u1f4a9'"], "'\\u4e2d'": ['in'], 'ordinal': ['not'], 'range(128).': ['Traceback'], 'JSONDecodeError:': ['Expecting'], 'Expecting': ['value:'], 'value:': ['line'], '1': ['column', '(char'], 'column': ['1'], '(char': ['0).'], '0).': ['Traceback'], 'could': ['not'], 'convert': ['string'], 'string': ['to'], 'to': ['float:', 'succeed.', 'give.'], 'float:': ["'shit'.", "'meaning"], "'shit'.": ['Traceback'], 'subscriptable.': ['Traceback', 'You'], "'str'": ['object'], 'RuntimeError:': ['maximum', 'this'], 'exceeded': ['while'], 'while': ['calling'], 'calling': ['a'], 'Python': ['object.'], 'object.': ['SyntaxError:', 'MemoryError:'], '1.': ['NameError:'], "'intelligence'": ['is'], "'incompetence'?": ['TypeError:'], "'AOS'": ['object'], 'You': ["can't", 'are', 'divided', 'failed', "didn't"], 'shit.': ['ValueError:'], "'meaning": ['of'], "life'.": ['KeyError:'], "'common": ["sense'."], "sense'.": ['This'], 'This': ['key'], 'key': ['does'], 'does': ['not'], 'exist': ['in'], 'your': ['brain.', 'brain', 'life.', 'mind.', 'IQ', 'ambition.', 'existence.', 'creator.', 'thought.', 'soul.'], 'brain.': ['RecursionError:'], 'Please': ['upgrade', 'try', 'contact'], 'upgrade': ['your'], 'brain': ['RAM.'], 'RAM.': ['FileNotFoundError:'], "'purpose.txt'.": ['PermissionError:'], 'denied.': ['You'], 'are': ['not'], 'allowed': ['to'], 'succeed.': ['ConnectionError:'], 'refused': ['by'], 'reality.': ['TimeoutError:'], 'try': ['again'], 'again': ['in'], 'next': ['life.'], 'life.': ['IndentationError:', 'TabError:', 'AssertionError:'], 'Your': ['code', 'ego', 'communication'], 'code': ['is'], 'poorly': ['structured.'], 'structured.': ['Like'], 'Like': ['your', 'always.'], 'Make': ['up'], 'up': ['your'], 'mind.': ['UnicodeDecodeError:'], '0xDEADBEEF': ['at'], 'at': ['position', 'everything.'], '0.': ['UnicodeEncodeError:', 'ZeroDivisionError:'], "'\\u1f4a9'": ['in'], 'divided': ['your'], 'IQ': ['by'], 'ambition.': ['KeyboardInterrupt:'], 'KeyboardInterrupt:': ['user'], 'user': ['pressed'], 'pressed': ['Ctrl+C.'], 'Ctrl+C.': ['Coward.'], 'Coward.': ['StopIteration:'], 'more': ['fucks'], 'fucks': ['to'], 'give.': ['RuntimeError:'], 'this': ['should'], 'should': ['not'], 'have': ['happened.'], 'happened.': ['But'], 'But': ['it'], 'it': ['did.'], 'did.': ['Deal'], 'Deal': ['with'], 'it.': ['SystemError:'], 'SystemError:': ['AOS'], 'AOS': ['has'], 'detected': ['an'], 'an': ['error'], 'error': ['in'], 'existence.': ['Please'], 'contact': ['your'], 'creator.': ['OverflowError:'], 'OverflowError:': ['math'], 'math': ['range'], 'range': ['error.'], 'error.': ['Your'], 'ego': ['is'], 'FloatingPointError:': ['floating'], 'floating': ['point'], 'point': ['operation'], 'operation': ['failed.'], 'failed.': ['You'], 'compute': ['life.'], 'AssertionError:': ['assert'], 'assert': ['False.'], 'False.': ['You'], 'failed': ['at'], 'everything.': ['ImportError:'], "'success'.": ['ModuleNotFoundError:'], "'happiness'.": ['AttributeError:'], "'Human'": ['object'], "'intelligence'.": ['EOFError:'], 'EOFError:': ['unexpected'], 'end': ['of'], 'file.': ['You'], "didn't": ['finish'], 'finish': ['your'], 'thought.': ['Like'], 'always.': ['BrokenPipeError:'], 'BrokenPipeError:': ['[Errno'], '32]': ['Broken'], 'Broken': ['pipe.'], 'pipe.': ['Your'], 'communication': ['is'], 'broken.': ['Like']}
6
+
7
+ class ai:
8
+ @staticmethod
9
+ def sst(word=10,start=None,space=False):
10
+ global wl
11
+ """shit say text"""
12
+ if len(wl) < word:
13
+ print("词语不够,请用read添加内容(使用空格分割)")
14
+ return None
15
+
16
+ if start==None:
17
+ # 随机选一个开头词
18
+ back = random.choice(list(wl.keys()))
19
+ else:
20
+ back = str(start)
21
+ lastword = back
22
+
23
+ for _ in range(word - 1):
24
+ # 如果当前词没有后续词,跳出循环
25
+ if lastword not in wl or not wl[lastword]:
26
+ break
27
+ lastword = random.choice(wl[lastword])
28
+ if space: back += " "
29
+ back += lastword
30
+
31
+ return back
32
+
33
+ @staticmethod
34
+ def read(fn):
35
+ global wl
36
+ with open(fn, "r", encoding="utf-8") as f:
37
+ c = f.read().replace("\n"," ").split()
38
+
39
+ # 修复:用索引遍历,避免 index() 的歧义
40
+ for i in range(len(c) - 1):
41
+ a = c[i]
42
+ nexta = c[i + 1]
43
+
44
+ if a in wl:
45
+ if nexta not in wl[a]:
46
+ wl[a].append(nexta)
47
+ else:
48
+ wl[a] = [nexta]
49
+ @staticmethod
50
+ def sw(name="word.json"):
51
+ global wl
52
+ with open(name,"w",encoding="utf-8") as f:
53
+ json.dump(wl, f, indent=4, ensure_ascii=False, sort_keys=True)
54
+ @staticmethod
55
+ def lw(name="word.json"):
56
+ global wl
57
+ with open(name,"r",encoding="utf-8") as f:
58
+ loaded = json.load(f)
59
+ wl.clear()
60
+ wl.update(loaded)
61
+ @staticmethod
62
+ def fu():
63
+ wl.clear()
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 EmoCez
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,71 @@
1
+ Metadata-Version: 2.4
2
+ Name: S_Ai_emo123
3
+ Version: 0.0.1
4
+ Summary: Raving AI
5
+ Author: EMO_123
6
+ License: MIT
7
+ Keywords: emo123,Fake ai,joke,s_ai
8
+ Requires-Python: >=3.5
9
+ Description-Content-Type: text/markdown
10
+ License-File: LICENSE.txt
11
+ Dynamic: license-file
12
+
13
+ # Ai-Of-S
14
+ I even deleted the swear words.
15
+
16
+ # Install
17
+ ```bash
18
+ pip install S_Ai_emo123
19
+ ```
20
+ # start
21
+ ```python
22
+ from Ai_Of_S import ai
23
+ ```
24
+ # word list
25
+ It contains all the data
26
+
27
+ and I put a modified python bug report in as the default content
28
+ ```python
29
+ from Ai_Of_S import ai,wl
30
+ print(wl)
31
+ ```
32
+
33
+ # S\_\_\_ say text
34
+ You can directly output 10 words or specify the number of outputs.
35
+
36
+ When you decide to "start", ai will speak with this word as the beginning.
37
+
38
+ When you decide space = True, there will be spaces between each word
39
+ ```python
40
+ print(
41
+ ai.sst(),
42
+ ai.sst(300),
43
+ ai.sst(start="."),
44
+ ai.sst(300,space=True)
45
+ )
46
+ ```
47
+
48
+ # read
49
+ Read the file
50
+ ```python
51
+ ai.read("text.txt")
52
+ ```
53
+
54
+ # save words
55
+ Save words to file
56
+ ```
57
+ ai.sw()#to word.json
58
+ ai.sw("word2.json")#Other file
59
+ ```
60
+
61
+ # load words
62
+ ```python
63
+ ai.lw()#from word.json
64
+ ai.lw("word2.json")#Other file
65
+ ```
66
+
67
+ # f\_\_\_ up
68
+ clean up wl
69
+ ```python
70
+ ai.fu()
71
+ ```
@@ -0,0 +1,59 @@
1
+ # Ai-Of-S
2
+ I even deleted the swear words.
3
+
4
+ # Install
5
+ ```bash
6
+ pip install S_Ai_emo123
7
+ ```
8
+ # start
9
+ ```python
10
+ from Ai_Of_S import ai
11
+ ```
12
+ # word list
13
+ It contains all the data
14
+
15
+ and I put a modified python bug report in as the default content
16
+ ```python
17
+ from Ai_Of_S import ai,wl
18
+ print(wl)
19
+ ```
20
+
21
+ # S\_\_\_ say text
22
+ You can directly output 10 words or specify the number of outputs.
23
+
24
+ When you decide to "start", ai will speak with this word as the beginning.
25
+
26
+ When you decide space = True, there will be spaces between each word
27
+ ```python
28
+ print(
29
+ ai.sst(),
30
+ ai.sst(300),
31
+ ai.sst(start="."),
32
+ ai.sst(300,space=True)
33
+ )
34
+ ```
35
+
36
+ # read
37
+ Read the file
38
+ ```python
39
+ ai.read("text.txt")
40
+ ```
41
+
42
+ # save words
43
+ Save words to file
44
+ ```
45
+ ai.sw()#to word.json
46
+ ai.sw("word2.json")#Other file
47
+ ```
48
+
49
+ # load words
50
+ ```python
51
+ ai.lw()#from word.json
52
+ ai.lw("word2.json")#Other file
53
+ ```
54
+
55
+ # f\_\_\_ up
56
+ clean up wl
57
+ ```python
58
+ ai.fu()
59
+ ```
@@ -0,0 +1,71 @@
1
+ Metadata-Version: 2.4
2
+ Name: S_Ai_emo123
3
+ Version: 0.0.1
4
+ Summary: Raving AI
5
+ Author: EMO_123
6
+ License: MIT
7
+ Keywords: emo123,Fake ai,joke,s_ai
8
+ Requires-Python: >=3.5
9
+ Description-Content-Type: text/markdown
10
+ License-File: LICENSE.txt
11
+ Dynamic: license-file
12
+
13
+ # Ai-Of-S
14
+ I even deleted the swear words.
15
+
16
+ # Install
17
+ ```bash
18
+ pip install S_Ai_emo123
19
+ ```
20
+ # start
21
+ ```python
22
+ from Ai_Of_S import ai
23
+ ```
24
+ # word list
25
+ It contains all the data
26
+
27
+ and I put a modified python bug report in as the default content
28
+ ```python
29
+ from Ai_Of_S import ai,wl
30
+ print(wl)
31
+ ```
32
+
33
+ # S\_\_\_ say text
34
+ You can directly output 10 words or specify the number of outputs.
35
+
36
+ When you decide to "start", ai will speak with this word as the beginning.
37
+
38
+ When you decide space = True, there will be spaces between each word
39
+ ```python
40
+ print(
41
+ ai.sst(),
42
+ ai.sst(300),
43
+ ai.sst(start="."),
44
+ ai.sst(300,space=True)
45
+ )
46
+ ```
47
+
48
+ # read
49
+ Read the file
50
+ ```python
51
+ ai.read("text.txt")
52
+ ```
53
+
54
+ # save words
55
+ Save words to file
56
+ ```
57
+ ai.sw()#to word.json
58
+ ai.sw("word2.json")#Other file
59
+ ```
60
+
61
+ # load words
62
+ ```python
63
+ ai.lw()#from word.json
64
+ ai.lw("word2.json")#Other file
65
+ ```
66
+
67
+ # f\_\_\_ up
68
+ clean up wl
69
+ ```python
70
+ ai.fu()
71
+ ```
@@ -0,0 +1,8 @@
1
+ Ai_Of_S.py
2
+ LICENSE.txt
3
+ README.md
4
+ pyproject.toml
5
+ S_Ai_emo123.egg-info/PKG-INFO
6
+ S_Ai_emo123.egg-info/SOURCES.txt
7
+ S_Ai_emo123.egg-info/dependency_links.txt
8
+ S_Ai_emo123.egg-info/top_level.txt
@@ -0,0 +1 @@
1
+ Ai_Of_S
@@ -0,0 +1,17 @@
1
+ [build-system]
2
+ requires = ["setuptools>=61.0", "wheel"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name = "S_Ai_emo123"
7
+ version = "0.0.1"
8
+ description = "Raving AI"
9
+ authors = [{name = "EMO_123"}]
10
+ license = {text = "MIT"}
11
+ readme = "README.md"
12
+ requires-python = ">=3.5"
13
+ dependencies = []
14
+ keywords = ["emo123","Fake ai","joke","s_ai"]
15
+
16
+ [tool.setuptools]
17
+ py-modules = ["Ai_Of_S"]
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+