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.
- beepmeup-0.1.0/PKG-INFO +7 -0
- beepmeup-0.1.0/README.md +0 -0
- beepmeup-0.1.0/beepmeup/__init__.py +1 -0
- beepmeup-0.1.0/beepmeup/beepmeup.py +19 -0
- beepmeup-0.1.0/beepmeup.egg-info/PKG-INFO +7 -0
- beepmeup-0.1.0/beepmeup.egg-info/SOURCES.txt +8 -0
- beepmeup-0.1.0/beepmeup.egg-info/dependency_links.txt +1 -0
- beepmeup-0.1.0/beepmeup.egg-info/top_level.txt +1 -0
- beepmeup-0.1.0/pyproject.toml +13 -0
- beepmeup-0.1.0/setup.cfg +4 -0
beepmeup-0.1.0/PKG-INFO
ADDED
beepmeup-0.1.0/README.md
ADDED
|
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 @@
|
|
|
1
|
+
|
|
@@ -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
|
+
]
|
beepmeup-0.1.0/setup.cfg
ADDED