figpack 0.1.0__py3-none-any.whl → 0.1.2__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.

Potentially problematic release.


This version of figpack might be problematic. Click here for more details.

@@ -1 +0,0 @@
1
- :root{font-family:system-ui,Avenir,Helvetica,Arial,sans-serif;line-height:1.5;font-weight:400;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}a{font-weight:500;color:#646cff;text-decoration:inherit}a:hover{color:#535bf2}body{margin:0;overflow:hidden}h1{font-size:3.2em;line-height:1.1}button{border-radius:8px;border:1px solid transparent;padding:.6em 1.2em;font-size:1em;font-weight:500;font-family:inherit;background-color:#1a1a1a;cursor:pointer;transition:border-color .25s}button:hover{border-color:#646cff}button:focus,button:focus-visible{outline:4px auto -webkit-focus-ring-color}.status-bar{position:fixed;bottom:0;left:0;right:0;height:30px;background-color:#2a2a2a;color:#fff;display:flex;align-items:center;padding:0 12px;font-size:12px;border-top:1px solid #444;z-index:1000}.status-bar.warning{background-color:#ff9800;color:#000}.status-bar.error{background-color:#f44336;color:#fff}.status-bar.expired{background-color:#d32f2f;color:#fff}@media (prefers-color-scheme: light){:root{color:#213547;background-color:#fff}a:hover{color:#747bff}button{background-color:#f9f9f9}.status-bar{background-color:#f5f5f5;color:#333;border-top:1px solid #ddd}.status-bar.warning{background-color:#fff3cd;color:#856404;border-top:1px solid #ffeaa7}.status-bar.error,.status-bar.expired{background-color:#f8d7da;color:#721c24;border-top:1px solid #f5c6cb}}
figpack/figpack_view.py DELETED
@@ -1,62 +0,0 @@
1
- """
2
- Base view class for figpack visualization components
3
- """
4
-
5
- from typing import Union
6
-
7
- import zarr
8
-
9
-
10
- class FigpackView:
11
- """
12
- Base class for all figpack visualization components
13
- """
14
-
15
- def show(
16
- self,
17
- *,
18
- port: Union[int, None] = None,
19
- open_in_browser: bool = False,
20
- allow_origin: Union[str, None] = None,
21
- ):
22
- """
23
- Display the visualization component
24
- """
25
- from ._show_view import _show_view
26
-
27
- _show_view(
28
- self, port=port, open_in_browser=open_in_browser, allow_origin=allow_origin
29
- )
30
-
31
- def upload(self) -> str:
32
- """
33
- Upload the visualization to the cloud
34
-
35
- Returns:
36
- str: URL where the uploaded figure can be viewed
37
-
38
- Raises:
39
- EnvironmentError: If FIGPACK_UPLOAD_PASSCODE is not set
40
- Exception: If upload fails
41
- """
42
- from ._upload_view import _upload_view
43
-
44
- return _upload_view(self)
45
-
46
- def dev(self):
47
- port = 3004
48
- print(
49
- f"For development, run figpack-gui in dev mode and use http://localhost:5173?data=http://localhost:{port}/data.zarr"
50
- )
51
- self.show(
52
- port=port, open_in_browser=False, allow_origin="http://localhost:5173"
53
- )
54
-
55
- def _write_to_zarr_group(self, group: zarr.Group) -> None:
56
- """
57
- Write the view data to a Zarr group. Must be implemented by subclasses.
58
-
59
- Args:
60
- group: Zarr group to write data into
61
- """
62
- raise NotImplementedError("Subclasses must implement _write_to_zarr_group")
@@ -1,33 +0,0 @@
1
- Metadata-Version: 2.4
2
- Name: figpack
3
- Version: 0.1.0
4
- Summary: A Python package for creating shareable, interactive visualizations
5
- Author-email: Jeremy Magland <jmagland@flatironinstitute.org>
6
- License: Apache-2.0
7
- Project-URL: Homepage, https://github.com/magland/figpack
8
- Project-URL: Repository, https://github.com/magland/figpack
9
- Project-URL: Documentation, https://github.com/magland/figpack#readme
10
- Project-URL: Bug Tracker, https://github.com/magland/figpack/issues
11
- Keywords: visualization,plotting,timeseries,interactive
12
- Classifier: Development Status :: 3 - Alpha
13
- Classifier: Intended Audience :: Developers
14
- Classifier: Intended Audience :: Science/Research
15
- Classifier: License :: OSI Approved :: Apache Software License
16
- Classifier: Operating System :: OS Independent
17
- Classifier: Programming Language :: Python :: 3
18
- Classifier: Programming Language :: Python :: 3.8
19
- Classifier: Programming Language :: Python :: 3.9
20
- Classifier: Programming Language :: Python :: 3.10
21
- Classifier: Programming Language :: Python :: 3.11
22
- Classifier: Programming Language :: Python :: 3.12
23
- Classifier: Topic :: Scientific/Engineering :: Visualization
24
- Requires-Python: >=3.8
25
- Description-Content-Type: text/markdown
26
- License-File: LICENSE
27
- Requires-Dist: numpy
28
- Requires-Dist: zarr
29
- Requires-Dist: requests
30
- Dynamic: license-file
31
-
32
- # figpack
33
-
@@ -1,14 +0,0 @@
1
- figpack/__init__.py,sha256=icrazTU8Tl3kP6NADES27gOnuQBLHGX3AuTwpkAjhwE,173
2
- figpack/_show_view.py,sha256=oZLK3d2lOCf8abmJ5fMth6uE8EV5rlj5FXhdAdlcE64,4193
3
- figpack/_upload_view.py,sha256=SRviGtYilu10IIfYp1WqjabPgsjpmYBAA1gkB6wdGjI,10673
4
- figpack/figpack_view.py,sha256=4YJdM97FAmEB45F6db472RPYWqXjxyd-QjccCufeor8,1602
5
- figpack/views.py,sha256=ExhIVYPEU5AMgnZ5QneVGgSwIoJMdWQ7qMq6PcwAdPM,7316
6
- figpack/figpack-gui-dist/index.html,sha256=bN9DL04S9plg05S7tk81ZloI-Mufnw7bYdjBTKnYddk,466
7
- figpack/figpack-gui-dist/assets/index-BrKvMWud.js,sha256=Q9v46qDWLIOCEXo5HukjZbOwDBTs6sWMFv6lWZBbHLM,899813
8
- figpack/figpack-gui-dist/assets/index-CeWL3OeJ.css,sha256=3ZqkZ-HTvHJ9vxqVBp7LrSjR0bKXlXEB9WduQg8hWew,1431
9
- figpack-0.1.0.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
10
- figpack-gui/node_modules/flatted/python/flatted.py,sha256=UYburBDqkySaTfSpntPCUJRxiBGcplusJM7ECX8FEgA,3860
11
- figpack-0.1.0.dist-info/METADATA,sha256=mVXNUPc44wyjz19TqZPtOMGyIirWZxi9yuOZmkzLz6w,1316
12
- figpack-0.1.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
13
- figpack-0.1.0.dist-info/top_level.txt,sha256=rnjeFJrho76QPJg3q-c9U7uUXz6KK5Ff5PPbPtGrk9s,20
14
- figpack-0.1.0.dist-info/RECORD,,