magpy-lite 0.1.0__py3-none-any.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.
magpy_lite/__init__.py ADDED
@@ -0,0 +1,10 @@
1
+ """Terminal interface for the bioamla bioacoustics toolkit"""
2
+
3
+ from importlib.metadata import PackageNotFoundError, version
4
+
5
+ try:
6
+ __version__ = version("magpy-lite")
7
+ except PackageNotFoundError: # running from a source tree without an install
8
+ __version__ = "0.0.0"
9
+
10
+ __all__ = ["__version__"]
magpy_lite/__main__.py ADDED
@@ -0,0 +1,5 @@
1
+ """Allow ``python -m magpy_lite``."""
2
+
3
+ from magpy_lite.app import main
4
+
5
+ main()
magpy_lite/app.py ADDED
@@ -0,0 +1,85 @@
1
+ """The magpy-lite Textual application.
2
+
3
+ For 0.1.0 this is a placeholder: a single screen announcing the project.
4
+ Real screens arrive as magpy and bioamla settle.
5
+ """
6
+
7
+ from __future__ import annotations
8
+
9
+ from textual.app import App, ComposeResult
10
+ from textual.binding import Binding
11
+ from textual.containers import Center, Middle, Vertical
12
+ from textual.widgets import Footer, Label, Static
13
+
14
+ from magpy_lite import __version__
15
+
16
+ TAGLINE = "A terminal interface for the bioamla bioacoustics toolkit"
17
+
18
+ PLANNED = (
19
+ "Browse and inspect recordings",
20
+ "Run acoustic indices and event detection",
21
+ "Batch-process directories of audio",
22
+ "Query species catalogs",
23
+ )
24
+
25
+
26
+ class ComingSoon(Static):
27
+ """The one panel on the 0.1.0 screen."""
28
+
29
+ DEFAULT_CSS = """
30
+ ComingSoon {
31
+ width: auto;
32
+ height: auto;
33
+ padding: 1 4;
34
+ border: round $primary;
35
+ }
36
+ ComingSoon > Vertical {
37
+ width: auto;
38
+ height: auto;
39
+ }
40
+ ComingSoon .title {
41
+ text-style: bold;
42
+ color: $primary;
43
+ }
44
+ ComingSoon .tagline {
45
+ margin-bottom: 1;
46
+ }
47
+ ComingSoon .status {
48
+ text-style: bold;
49
+ margin-bottom: 1;
50
+ }
51
+ ComingSoon .planned {
52
+ color: $text-muted;
53
+ }
54
+ """
55
+
56
+ def compose(self) -> ComposeResult:
57
+ with Vertical():
58
+ yield Label(f"magpy-lite {__version__}", classes="title")
59
+ yield Label(TAGLINE, classes="tagline")
60
+ yield Label("Coming soon.", classes="status")
61
+ yield Label("Planned:", classes="planned")
62
+ for item in PLANNED:
63
+ yield Label(f" • {item}", classes="planned")
64
+
65
+
66
+ class MagpyLiteApp(App[None]):
67
+ """Top-level app. Press q to quit."""
68
+
69
+ TITLE = "magpy-lite"
70
+ SUB_TITLE = "coming soon"
71
+ BINDINGS = [Binding("q", "quit", "Quit")]
72
+
73
+ def compose(self) -> ComposeResult:
74
+ with Middle(), Center():
75
+ yield ComingSoon()
76
+ yield Footer()
77
+
78
+
79
+ def main() -> None:
80
+ """Console-script entry point (``magpy-lite``)."""
81
+ MagpyLiteApp().run()
82
+
83
+
84
+ if __name__ == "__main__":
85
+ main()
@@ -0,0 +1,81 @@
1
+ Metadata-Version: 2.5
2
+ Name: magpy-lite
3
+ Version: 0.1.0
4
+ Summary: Terminal interface for the bioamla bioacoustics toolkit
5
+ Project-URL: Homepage, https://github.com/jmcmeen/magpy-lite
6
+ Project-URL: Source, https://github.com/jmcmeen/magpy-lite
7
+ Project-URL: Changelog, https://github.com/jmcmeen/magpy-lite/blob/main/CHANGELOG.md
8
+ Project-URL: Bug Tracker, https://github.com/jmcmeen/magpy-lite/issues
9
+ Author-email: John McMeen <johnmcmeen@gmail.com>
10
+ License-Expression: MIT
11
+ License-File: LICENSE
12
+ Keywords: audio,bioacoustics,bioamla,terminal,textual,tui
13
+ Classifier: Development Status :: 2 - Pre-Alpha
14
+ Classifier: Environment :: Console
15
+ Classifier: Intended Audience :: Developers
16
+ Classifier: Intended Audience :: Science/Research
17
+ Classifier: Operating System :: OS Independent
18
+ Classifier: Programming Language :: Python :: 3
19
+ Classifier: Programming Language :: Python :: 3.10
20
+ Classifier: Programming Language :: Python :: 3.11
21
+ Classifier: Programming Language :: Python :: 3.12
22
+ Classifier: Programming Language :: Python :: 3.13
23
+ Classifier: Topic :: Multimedia :: Sound/Audio :: Analysis
24
+ Classifier: Topic :: Scientific/Engineering
25
+ Requires-Python: >=3.10
26
+ Requires-Dist: textual>=3.0
27
+ Provides-Extra: dev
28
+ Requires-Dist: pytest-cov; extra == 'dev'
29
+ Requires-Dist: pytest>=7.0; extra == 'dev'
30
+ Requires-Dist: ruff<0.18,>=0.17; extra == 'dev'
31
+ Description-Content-Type: text/markdown
32
+
33
+ # magpy-lite
34
+
35
+ [![PyPI version](https://img.shields.io/pypi/v/magpy-lite.svg)](https://pypi.org/project/magpy-lite/)
36
+ [![Python](https://img.shields.io/badge/python-3.10%2B-blue.svg)](https://www.python.org/downloads/)
37
+ [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://github.com/jmcmeen/magpy-lite/blob/main/LICENSE)
38
+ [![CI](https://github.com/jmcmeen/magpy-lite/actions/workflows/ci.yml/badge.svg)](https://github.com/jmcmeen/magpy-lite/actions/workflows/ci.yml)
39
+
40
+ A terminal interface for the [bioamla](https://github.com/jmcmeen/bioamla)
41
+ bioacoustics toolkit, built with [Textual](https://textual.textualize.io/).
42
+ It is the keyboard-driven, runs-over-SSH sibling of
43
+ [MagPy](https://github.com/jmcmeen/magpy), the desktop GUI.
44
+
45
+ > **Status: coming soon.** 0.1.0 is a placeholder release that claims the name
46
+ > and ships a single announcement screen. Features will be planned as magpy and
47
+ > bioamla mature.
48
+
49
+ ## Install
50
+
51
+ ```sh
52
+ pip install magpy-lite
53
+ magpy-lite # or: python -m magpy_lite
54
+ ```
55
+
56
+ Press `q` to quit.
57
+
58
+ ## Roadmap
59
+
60
+ Nothing here is committed yet. Likely first screens, in rough order:
61
+
62
+ - Browse and inspect recordings
63
+ - Run acoustic indices and event detection
64
+ - Batch-process directories of audio
65
+ - Query species catalogs
66
+
67
+ The division of labour follows MagPy: bioamla owns the bioacoustics domain,
68
+ magpy-lite owns only the terminal UI and the state a functional library can't
69
+ hold. Domain functionality goes into bioamla, not here.
70
+
71
+ ## Development
72
+
73
+ ```sh
74
+ make install # create .venv with dev tooling
75
+ make run # launch the TUI
76
+ make check # lint, format check, tests
77
+ ```
78
+
79
+ ## License
80
+
81
+ MIT. See [LICENSE](LICENSE).
@@ -0,0 +1,8 @@
1
+ magpy_lite/__init__.py,sha256=AC-05M0ry6nZVkDSTlhW_5V5uKCBtDLec71lFunuKd0,301
2
+ magpy_lite/__main__.py,sha256=_y0u0YZqhMtGk1qLIWJWsXlwlBWrPWZKmq_M5szGCMo,79
3
+ magpy_lite/app.py,sha256=cUUfyclMIWcVmM5pR8Uo8tELYCbpd3m4cwNulsjAQpU,2095
4
+ magpy_lite-0.1.0.dist-info/METADATA,sha256=nRmuI8g0RcjScE-TsnFePz2Jh3a60Ny-m5GxsU2c4EY,3043
5
+ magpy_lite-0.1.0.dist-info/WHEEL,sha256=W3fkpkm7-wf9vBI5Z-7s0eWkeM-spu78I8Neb98DeEg,87
6
+ magpy_lite-0.1.0.dist-info/entry_points.txt,sha256=iTjm0jGNmPXqmMO02TqJ97xCZRejTz08xDMCZZZXojw,51
7
+ magpy_lite-0.1.0.dist-info/licenses/LICENSE,sha256=qzmCAeakObqZTPFNxWt_xwcfdG7J_3DWvuq_M9UnjFI,1068
8
+ magpy_lite-0.1.0.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: hatchling 1.32.4
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
@@ -0,0 +1,2 @@
1
+ [console_scripts]
2
+ magpy-lite = magpy_lite.app:main
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 John McMeen
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.