We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 565dfd1 commit 3db3e17Copy full SHA for 3db3e17
4 files changed
python-pyproject-toml/README.md
python-pyproject-toml/snakesay-project/pyproject.toml
@@ -0,0 +1,10 @@
1
+[build-system]
2
+requires = ["setuptools", "setuptools-scm"]
3
+build-backend = "setuptools.build_meta"
4
+
5
+[project]
6
+name = "snakesay"
7
+version = "1.0.0"
8
9
+[project.scripts]
10
+snakey = "snakesay.__main__:main"
python-pyproject-toml/snakesay-project/snakesay/__main__.py
@@ -0,0 +1,9 @@
+import sys
+from snakesay import snake
+def main():
+ snake.say(" ".join(sys.argv[1:]))
+if __name__ == "__main__":
+ main()
python-pyproject-toml/snakesay-project/snakesay/snake.py
@@ -0,0 +1,22 @@
+SNAKE = r""" \
+ \ __
+ \ {oo}
+ (__)\
+ λ \\
+ _\\__
+ (_____)_
+ (________)=Oo°
+"""
11
12
+def bubble(message):
13
+ bubble_length = len(message) + 2
14
+ return f"""
15
+ {"_" * bubble_length}
16
+( {message} )
17
+ {"‾" * bubble_length}"""
18
19
20
+def say(message):
21
+ print(bubble(message))
22
+ print(SNAKE)
0 commit comments