arrayview 0.2.2__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,70 @@
1
+ # This workflow will upload a Python Package to PyPI when a release is created
2
+ # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python#publishing-to-package-registries
3
+
4
+ # This workflow uses actions that are not certified by GitHub.
5
+ # They are provided by a third-party and are governed by
6
+ # separate terms of service, privacy policy, and support
7
+ # documentation.
8
+
9
+ name: Upload Python Package
10
+
11
+ on:
12
+ release:
13
+ types: [published]
14
+
15
+ permissions:
16
+ contents: read
17
+
18
+ jobs:
19
+ release-build:
20
+ runs-on: ubuntu-latest
21
+
22
+ steps:
23
+ - uses: actions/checkout@v4
24
+
25
+ - uses: actions/setup-python@v5
26
+ with:
27
+ python-version: "3.x"
28
+
29
+ - name: Build release distributions
30
+ run: |
31
+ # NOTE: put your own distribution build steps here.
32
+ python -m pip install build
33
+ python -m build
34
+
35
+ - name: Upload distributions
36
+ uses: actions/upload-artifact@v4
37
+ with:
38
+ name: release-dists
39
+ path: dist/
40
+
41
+ pypi-publish:
42
+ runs-on: ubuntu-latest
43
+ needs:
44
+ - release-build
45
+ permissions:
46
+ # IMPORTANT: this permission is mandatory for trusted publishing
47
+ id-token: write
48
+
49
+ # Dedicated environments with protections for publishing are strongly recommended.
50
+ # For more information, see: https://docs.github.com/en/actions/deployment/targeting-different-environments/using-environments-for-deployment#deployment-protection-rules
51
+ environment:
52
+ name: pypi
53
+ # OPTIONAL: uncomment and update to include your PyPI project URL in the deployment status:
54
+ # url: https://pypi.org/p/YOURPROJECT
55
+ #
56
+ # ALTERNATIVE: if your GitHub Release name is the PyPI project version string
57
+ # ALTERNATIVE: exactly, uncomment the following line instead:
58
+ # url: https://pypi.org/project/YOURPROJECT/${{ github.event.release.name }}
59
+
60
+ steps:
61
+ - name: Retrieve release distributions
62
+ uses: actions/download-artifact@v4
63
+ with:
64
+ name: release-dists
65
+ path: dist/
66
+
67
+ - name: Publish release distributions to PyPI
68
+ uses: pypa/gh-action-pypi-publish@release/v1
69
+ with:
70
+ packages-dir: dist/
@@ -0,0 +1,15 @@
1
+ # Python-generated files
2
+ __pycache__/
3
+ *.py[oc]
4
+ build/
5
+ dist/
6
+ wheels/
7
+ *.egg-info
8
+
9
+ # Virtual environments
10
+ .venv
11
+
12
+ *.npy
13
+ .claude/
14
+ CLAUDE.md
15
+ debug/
@@ -0,0 +1 @@
1
+ 3.12
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Oscar
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.
@@ -0,0 +1,50 @@
1
+ Metadata-Version: 2.4
2
+ Name: arrayview
3
+ Version: 0.2.2
4
+ Summary: Fast multi-dimensional array viewer
5
+ Project-URL: Home, https://github.com/oscarvanderheide/arrayview
6
+ Project-URL: Source, https://github.com/yourname/arrayview
7
+ Author-email: Oscar <oscarvanderheide@example.com>
8
+ License: MIT
9
+ License-File: LICENSE
10
+ Keywords: array,mri,npy,viewer,visualization
11
+ Classifier: License :: OSI Approved :: MIT License
12
+ Classifier: Operating System :: OS Independent
13
+ Classifier: Programming Language :: Python :: 3
14
+ Classifier: Programming Language :: Python :: 3 :: Only
15
+ Classifier: Programming Language :: Python :: 3.12
16
+ Requires-Python: >=3.12
17
+ Requires-Dist: fastapi>=0.129.0
18
+ Requires-Dist: matplotlib>=3.9.0
19
+ Requires-Dist: nibabel>=5.3.3
20
+ Requires-Dist: numpy>=2.4.2
21
+ Requires-Dist: pillow>=12.1.1
22
+ Requires-Dist: pywebview>=6.1
23
+ Requires-Dist: qmricolors>=0.1.2
24
+ Requires-Dist: uvicorn>=0.41.0
25
+ Requires-Dist: websockets>=14.0
26
+ Requires-Dist: zarr>=2.17
27
+ Description-Content-Type: text/markdown
28
+
29
+ # arrayview
30
+
31
+ A fast, minimal viewer for multi-dimensional arrays, inspired by the great
32
+ [arrShow](https://github.com/tsumpf/arrShow).
33
+
34
+ - CLI and Python useage
35
+ - Inline in Jupyter / vscode interactive window
36
+ - Runs locally, over SSH, and through VS Code tunnels
37
+
38
+ ## CLI
39
+ `uvx arrayview your_array.npy`
40
+
41
+ ## Python
42
+ ```python
43
+ from arrayview import view
44
+ import numpy as np
45
+
46
+ np.random.rand(256,256,32,2)
47
+ view(x)
48
+ ```
49
+
50
+
@@ -0,0 +1,22 @@
1
+ # arrayview
2
+
3
+ A fast, minimal viewer for multi-dimensional arrays, inspired by the great
4
+ [arrShow](https://github.com/tsumpf/arrShow).
5
+
6
+ - CLI and Python useage
7
+ - Inline in Jupyter / vscode interactive window
8
+ - Runs locally, over SSH, and through VS Code tunnels
9
+
10
+ ## CLI
11
+ `uvx arrayview your_array.npy`
12
+
13
+ ## Python
14
+ ```python
15
+ from arrayview import view
16
+ import numpy as np
17
+
18
+ np.random.rand(256,256,32,2)
19
+ view(x)
20
+ ```
21
+
22
+
@@ -0,0 +1,48 @@
1
+ [build-system]
2
+ requires = ["hatchling"]
3
+ build-backend = "hatchling.build"
4
+
5
+ [project]
6
+ name = "arrayview"
7
+ version = "0.2.2"
8
+ description = "Fast multi-dimensional array viewer"
9
+ readme = { file = "README.md", content-type = "text/markdown" }
10
+ requires-python = ">=3.12"
11
+ authors = [ { name = "Oscar", email = "oscarvanderheide@example.com" } ]
12
+ license = { text = "MIT" }
13
+ classifiers = [
14
+ "License :: OSI Approved :: MIT License",
15
+ "Programming Language :: Python :: 3",
16
+ "Programming Language :: Python :: 3 :: Only",
17
+ "Programming Language :: Python :: 3.12",
18
+ "Operating System :: OS Independent",
19
+ ]
20
+ keywords = ["npy", "viewer", "mri", "array", "visualization"]
21
+ urls = { "Home" = "https://github.com/oscarvanderheide/arrayview", "Source" = "https://github.com/yourname/arrayview" }
22
+ dependencies = [
23
+ "fastapi>=0.129.0",
24
+ "matplotlib>=3.9.0",
25
+ "nibabel>=5.3.3",
26
+ "numpy>=2.4.2",
27
+ "pillow>=12.1.1",
28
+ "pywebview>=6.1",
29
+ "qmricolors>=0.1.2",
30
+ "uvicorn>=0.41.0",
31
+ "websockets>=14.0",
32
+ "zarr>=2.17",
33
+ ]
34
+
35
+ [project.scripts]
36
+ arrayview = "arrayview._app:arrayview"
37
+
38
+ [tool.hatch.build.targets.wheel]
39
+ packages = ["arrayview"]
40
+
41
+ [tool.uv.sources]
42
+ qmricolors = { git = "https://github.com/oscarvanderheide/qmricolors.git" }
43
+
44
+ [dependency-groups]
45
+ dev = [
46
+ "ipykernel>=7.2.0",
47
+ "twine>=6.2.0",
48
+ ]
@@ -0,0 +1,3 @@
1
+ __version__ = "0.2.2"
2
+
3
+ from arrayview._app import arrayview, view # noqa: F401