audd-cli 0.1.2__py3-none-macosx_11_0_arm64.whl

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.
audd_cli/__init__.py ADDED
@@ -0,0 +1,18 @@
1
+ """The AudD CLI (audd), packaged for pip, pipx, uv, and uvx.
2
+
3
+ The wheel carries the prebuilt audd binary for one platform; the `audd`
4
+ command runs it.
5
+ """
6
+
7
+ import os
8
+ import sys
9
+
10
+ __version__ = "0.1.2"
11
+
12
+ __all__ = ["binary_path", "__version__"]
13
+
14
+
15
+ def binary_path():
16
+ """Return the path of the bundled audd binary."""
17
+ name = "audd.exe" if sys.platform == "win32" else "audd"
18
+ return os.path.join(os.path.dirname(os.path.abspath(__file__)), "bin", name)
audd_cli/__main__.py ADDED
@@ -0,0 +1,38 @@
1
+ """Run the bundled audd binary with this process's arguments."""
2
+
3
+ import os
4
+ import stat
5
+ import sys
6
+
7
+ from audd_cli import binary_path
8
+
9
+
10
+ def main():
11
+ exe = binary_path()
12
+ if not os.path.isfile(exe):
13
+ sys.stderr.write(
14
+ "audd: the binary for this system is missing from the audd-cli package (%s).\n"
15
+ "Reinstall it with: pip install --force-reinstall audd-cli\n" % exe
16
+ )
17
+ return 1
18
+ args = [exe] + sys.argv[1:]
19
+ if os.name == "nt":
20
+ import signal
21
+ import subprocess
22
+
23
+ # Ctrl-C reaches audd directly; let it stop cleanly and report its own
24
+ # exit code instead of this wrapper dying first.
25
+ signal.signal(signal.SIGINT, signal.SIG_IGN)
26
+ return subprocess.call(args)
27
+ mode = os.stat(exe).st_mode
28
+ if not mode & stat.S_IXUSR:
29
+ try:
30
+ os.chmod(exe, mode | stat.S_IXUSR | stat.S_IXGRP | stat.S_IXOTH)
31
+ except OSError:
32
+ pass
33
+ os.execv(exe, args)
34
+ return 1 # not reached
35
+
36
+
37
+ if __name__ == "__main__":
38
+ sys.exit(main())
audd_cli/bin/audd ADDED
Binary file
@@ -0,0 +1,42 @@
1
+ Metadata-Version: 2.4
2
+ Name: audd-cli
3
+ Version: 0.1.2
4
+ Summary: Command-line tool for AudD music recognition: files, URLs, folders, streams, and your account
5
+ Author-email: "AudD, LLC" <hello@audd.io>
6
+ License-Expression: MIT
7
+ License-File: LICENSE
8
+ Project-URL: Homepage, https://audd.io
9
+ Project-URL: Documentation, https://docs.audd.io
10
+ Project-URL: Source, https://github.com/AudDMusic/audd-cli
11
+ Keywords: audd,music recognition,audio fingerprinting,cli
12
+ Classifier: Environment :: Console
13
+ Classifier: Intended Audience :: Developers
14
+ Classifier: Operating System :: MacOS
15
+ Classifier: Operating System :: Microsoft :: Windows
16
+ Classifier: Operating System :: POSIX :: Linux
17
+ Classifier: Topic :: Multimedia :: Sound/Audio :: Analysis
18
+ Requires-Python: >=3.8
19
+ Description-Content-Type: text/markdown
20
+
21
+ # audd-cli
22
+
23
+ `audd` is the command-line tool for [AudD](https://audd.io) music recognition:
24
+ recognize music in files, URLs, folders, and long recordings, monitor streams,
25
+ and manage your AudD account from a terminal, a script, or an AI agent.
26
+
27
+ This package installs the prebuilt `audd` binary for your system.
28
+
29
+ ```sh
30
+ uvx audd-cli recognize song.mp3 # run without installing
31
+ pipx install audd-cli # or: uv tool install audd-cli
32
+ audd login # or get your API token at https://dashboard.audd.io
33
+ audd recognize song.mp3
34
+ ```
35
+
36
+ Output is a table on a terminal and JSON when piped. `audd --help` lists every
37
+ command, and `audd docs cli` prints the full reference.
38
+
39
+ Documentation, other install methods, and source:
40
+ https://github.com/AudDMusic/audd-cli
41
+
42
+ MIT License. Copyright (c) 2026 AudD, LLC (https://audd.io).
@@ -0,0 +1,8 @@
1
+ audd_cli/__init__.py,sha256=oeEulhA4CG4N6RQS_rcSTP7Sl3GL7QnTB1C0rU5Tr9k,459
2
+ audd_cli/__main__.py,sha256=jU5c6V7fSnUrInf6w9KdXo9BKx6Z4J29ejOdltOCzrM,1056
3
+ audd_cli/bin/audd,sha256=5LAdHQmxvwSdTVPQ556sjZ-pZAuzc7wn0_jyxDvMLX4,18973472
4
+ audd_cli-0.1.2.dist-info/licenses/LICENSE,sha256=dXwHBnGytmYaA3aw7Ce1ii1c_E3CE6zzLyBd2QGow5M,1084
5
+ audd_cli-0.1.2.dist-info/METADATA,sha256=dcCwE_DUNfBCgyYuvHPRR0E1vJzXOIG_vqt84mS7C5U,1642
6
+ audd_cli-0.1.2.dist-info/WHEEL,sha256=CVsShhq2z-aWp8_-XDEep_wnZsAxNOOvcHosr6HpUes,110
7
+ audd_cli-0.1.2.dist-info/entry_points.txt,sha256=jrY0nh2rlKaqefLWhgyoGQaX07wTA4ec7IQJo3vPwyA,82
8
+ audd_cli-0.1.2.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: audd-cli build_wheels.py
3
+ Root-Is-Purelib: false
4
+ Tag: py3-none-macosx_11_0_arm64
@@ -0,0 +1,3 @@
1
+ [console_scripts]
2
+ audd = audd_cli.__main__:main
3
+ audd-cli = audd_cli.__main__:main
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 AudD, LLC (https://audd.io)
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.