beepmeup 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,7 @@
1
+ Metadata-Version: 2.4
2
+ Name: beepmeup
3
+ Version: 0.1.0
4
+ Summary: A simple cross-platform beep notification for long-running scripts
5
+ Author-email: Tim Krabbe <deine@email.com>
6
+ Requires-Python: >=3.8
7
+ Description-Content-Type: text/markdown
File without changes
@@ -0,0 +1 @@
1
+ from .beepmeup import beep
@@ -0,0 +1,19 @@
1
+ import platform
2
+ import subprocess
3
+
4
+
5
+ def beep(frequency=440, duration=500):
6
+ system = platform.system()
7
+
8
+ if system == "Windows":
9
+ import winsound
10
+ winsound.Beep(frequency, duration)
11
+
12
+ elif system == "Linux":
13
+ subprocess.run(["beep", "-f", str(frequency), "-l", str(duration)],
14
+ check=False)
15
+
16
+ elif system == "Darwin": # Mac
17
+ # frequency und duration werden hier ignoriert, afplay spielt eine Audiodatei
18
+ subprocess.run(["afplay", "/System/Library/Sounds/Ping.aiff"],
19
+ check=False)
@@ -0,0 +1,7 @@
1
+ Metadata-Version: 2.4
2
+ Name: beepmeup
3
+ Version: 0.1.0
4
+ Summary: A simple cross-platform beep notification for long-running scripts
5
+ Author-email: Tim Krabbe <deine@email.com>
6
+ Requires-Python: >=3.8
7
+ Description-Content-Type: text/markdown
@@ -0,0 +1,8 @@
1
+ README.md
2
+ pyproject.toml
3
+ beepmeup/__init__.py
4
+ beepmeup/beepmeup.py
5
+ beepmeup.egg-info/PKG-INFO
6
+ beepmeup.egg-info/SOURCES.txt
7
+ beepmeup.egg-info/dependency_links.txt
8
+ beepmeup.egg-info/top_level.txt
@@ -0,0 +1 @@
1
+ beepmeup
@@ -0,0 +1,13 @@
1
+ [build-system]
2
+ requires = ["setuptools>=61.0"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name = "beepmeup"
7
+ version = "0.1.0"
8
+ description = "A simple cross-platform beep notification for long-running scripts"
9
+ readme = "README.md"
10
+ requires-python = ">=3.8"
11
+ authors = [
12
+ {name = "Tim Krabbe", email = "deine@email.com"}
13
+ ]
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+