HiHelloLib 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.
- hihellolib-0.1.0/HiHello/__init__.py +16 -0
- hihellolib-0.1.0/HiHelloLib.egg-info/PKG-INFO +12 -0
- hihellolib-0.1.0/HiHelloLib.egg-info/SOURCES.txt +8 -0
- hihellolib-0.1.0/HiHelloLib.egg-info/dependency_links.txt +1 -0
- hihellolib-0.1.0/HiHelloLib.egg-info/top_level.txt +1 -0
- hihellolib-0.1.0/PKG-INFO +12 -0
- hihellolib-0.1.0/README.md +3 -0
- hihellolib-0.1.0/pyproject.toml +12 -0
- hihellolib-0.1.0/setup.cfg +4 -0
- hihellolib-0.1.0/tests/test_first.py +12 -0
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import random
|
|
2
|
+
|
|
3
|
+
def genHiHello() -> str:
|
|
4
|
+
return ["Hi","Hello"][random.randint(0,1)]
|
|
5
|
+
|
|
6
|
+
def respond(msg: str) -> str:
|
|
7
|
+
"""
|
|
8
|
+
HiHelloライブラリの応答関数
|
|
9
|
+
"""
|
|
10
|
+
msg = msg.strip()
|
|
11
|
+
if msg == "Hi":
|
|
12
|
+
return "Hello"
|
|
13
|
+
elif msg == "Hello":
|
|
14
|
+
return "Hi"
|
|
15
|
+
else:
|
|
16
|
+
raise ValueError(f"Unsupported message: {msg}")
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
HiHello
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["setuptools>=65.5.1", "wheel"]
|
|
3
|
+
build-backend = "setuptools.build_meta"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name ="HiHelloLib"
|
|
7
|
+
version = "0.1.0"
|
|
8
|
+
description = "Simple HiHello responder library"
|
|
9
|
+
authors = [{name="Oywe", email="ncql@proton.me"}]
|
|
10
|
+
readme = "README.md"
|
|
11
|
+
requires-python = ">=3.8"
|
|
12
|
+
license = {text = "MIT"}
|