VTKio 0.1.0.dev2__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.
- vtkio/__init__.py +27 -0
- vtkio/_git.py +45 -0
- vtkio/helpers.py +110 -0
- vtkio/reader/__init__.py +15 -0
- vtkio/reader/hdf5.py +379 -0
- vtkio/reader/xml.py +712 -0
- vtkio/simplified.py +621 -0
- vtkio/utilities.py +222 -0
- vtkio/version.py +78 -0
- vtkio/vtk_cell_types.py +98 -0
- vtkio/vtk_structures.py +306 -0
- vtkio/writer/__init__.py +16 -0
- vtkio/writer/pvd_writer.py +132 -0
- vtkio/writer/vtkhdf.py +1184 -0
- vtkio/writer/writers.py +393 -0
- vtkio/writer/xml_writer.py +1597 -0
- vtkio-0.1.0.dev2.dist-info/METADATA +86 -0
- vtkio-0.1.0.dev2.dist-info/RECORD +20 -0
- vtkio-0.1.0.dev2.dist-info/WHEEL +4 -0
- vtkio-0.1.0.dev2.dist-info/licenses/LICENSE +28 -0
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: VTKio
|
|
3
|
+
Version: 0.1.0.dev2
|
|
4
|
+
Summary: A simple package for converting data between VTK files (XML and HDF5) and NumPy arrays.
|
|
5
|
+
Project-URL: Homepage, https://jpmorr.gitlab.io/vtkio
|
|
6
|
+
Project-URL: Documentation, https://jpmorr.gitlab.io/vtkio
|
|
7
|
+
Project-URL: Issues, https://gitlab.com/jpmorr/vtkio/-/issues
|
|
8
|
+
Project-URL: Source, https://gitlab.com/jpmorr/vtkio/-/tree/main
|
|
9
|
+
Project-URL: Changelog, https://gitlab.com/jpmorr/vtkio/-/tree/main
|
|
10
|
+
Project-URL: donate, https://ko-fi.com/jpmorr
|
|
11
|
+
Author-email: JP Morrissey <morrissey.jp@gmail.com>
|
|
12
|
+
Maintainer-email: JP Morrissey <morrissey.jp@gmail.com>
|
|
13
|
+
License-Expression: BSD-3-Clause
|
|
14
|
+
License-File: LICENSE
|
|
15
|
+
Keywords: Converter,HDF5,NumPy,VTK,Visualisation,XML
|
|
16
|
+
Classifier: Development Status :: 4 - Beta
|
|
17
|
+
Classifier: Intended Audience :: Manufacturing
|
|
18
|
+
Classifier: Intended Audience :: Science/Research
|
|
19
|
+
Classifier: Operating System :: OS Independent
|
|
20
|
+
Classifier: Programming Language :: Python
|
|
21
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
22
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
23
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
24
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
25
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
26
|
+
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
27
|
+
Classifier: Topic :: Scientific/Engineering
|
|
28
|
+
Classifier: Topic :: Scientific/Engineering :: Visualization
|
|
29
|
+
Requires-Python: >=3.10
|
|
30
|
+
Requires-Dist: dotwiz>=0.4.0
|
|
31
|
+
Requires-Dist: h5py>=3.11
|
|
32
|
+
Requires-Dist: numpy>=2.1
|
|
33
|
+
Requires-Dist: pybase64>=1.3
|
|
34
|
+
Requires-Dist: xmltodict>=0.13
|
|
35
|
+
Provides-Extra: docs
|
|
36
|
+
Requires-Dist: markdown-exec[ansi]>=1.10.3; extra == 'docs'
|
|
37
|
+
Requires-Dist: mkdocs-autorefs>=1.4.2; extra == 'docs'
|
|
38
|
+
Requires-Dist: mkdocs-git-committers-plugin-2>=2.5.0; extra == 'docs'
|
|
39
|
+
Requires-Dist: mkdocs-git-revision-date-localized-plugin>=1.4.7; extra == 'docs'
|
|
40
|
+
Requires-Dist: mkdocs-material-extensions>=1.3.1; extra == 'docs'
|
|
41
|
+
Requires-Dist: mkdocs-material[imaging]>=9.6.14; extra == 'docs'
|
|
42
|
+
Requires-Dist: mkdocs>=1.6.1; extra == 'docs'
|
|
43
|
+
Requires-Dist: mkdocstrings-python>=0.18; extra == 'docs'
|
|
44
|
+
Requires-Dist: mkdocstrings>=0.29.1; extra == 'docs'
|
|
45
|
+
Provides-Extra: tests
|
|
46
|
+
Requires-Dist: pytest-cov>=6.1.1; extra == 'tests'
|
|
47
|
+
Requires-Dist: pytest>=8.3.5; extra == 'tests'
|
|
48
|
+
Description-Content-Type: text/markdown
|
|
49
|
+
|
|
50
|
+
# VTKio
|
|
51
|
+
A simple python package for reading and writing Visualization Tool Kit (VTK) files.
|
|
52
|
+

|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
## Supported features
|
|
56
|
+
Legacy ascii `.vtk` files are not supported and only the newer XML and HDF% based formats are supported.
|
|
57
|
+
|
|
58
|
+
XML files can be written in `ascii`, `base64` binary and appended `base64` binary formats.
|
|
59
|
+
The means all files remain valid `XML` documents.
|
|
60
|
+
|
|
61
|
+
XML and VTKHDF files can also be read using the associated file readers.
|
|
62
|
+
|
|
63
|
+
Data is returned in appropriate VTK classes with arrays stored in `numpy` formats.
|
|
64
|
+
|
|
65
|
+
> [!WARNING]
|
|
66
|
+
> VTKHDF files can only be opened in supported software. For example, ParaView has full VTKHDF
|
|
67
|
+
> support in 5.13 and above.
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
## VTK File Formats
|
|
71
|
+
All file formats have been developed based on VTK's [documentation](https://docs.vtk.org/en/latest/index.html) where
|
|
72
|
+
the [XML](https://docs.vtk.org/en/latest/design_documents/VTKFileFormats.html#xml-file-formats) formats and newer
|
|
73
|
+
[VTKHDF](https://docs.vtk.org/en/latest/design_documents/VTKFileFormats.html#vtkhdf-file-format) formats are described in detail.
|
|
74
|
+
Additional information can be found in [Chapter 5](https://book.vtk.org/en/latest/VTKBook/05Chapter5.html#) of the **VTK Book**.
|
|
75
|
+
|
|
76
|
+
Further information regarding the VTK data model can be found in the [ParaView documentation](https://docs.paraview.org/en/latest/UsersGuide/understandingData.html#vtk-data-model).
|
|
77
|
+
|
|
78
|
+
Example datafiles can be found for various filetypes at the [VTK Examples Repository](https://gitlab.kitware.com/vtk/vtk-examples/-/tree/master/src/Testing/Data?ref_type=heads).
|
|
79
|
+
|
|
80
|
+
For full documentation visit [jpmorr.gitlab.io](https://jpmorr.gitlab.io/vtkio).
|
|
81
|
+
|
|
82
|
+
## Related packages
|
|
83
|
+
|
|
84
|
+
- [PyEVTK](https://github.com/paulo-herrera/PyEVTK)
|
|
85
|
+
- [meshio](https://github.com/nschloe/meshio)
|
|
86
|
+
- [uvw](https://github.com/prs513rosewood/uvw)
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
vtkio/__init__.py,sha256=mvaycVi5qmGoaGD45qkShKxoDAr1CSadkluBM-O72dY,520
|
|
2
|
+
vtkio/_git.py,sha256=jG8rTkhiZ8M0D8tGaYzfiV86mvqKWKRTFnVrT525Bbs,1055
|
|
3
|
+
vtkio/helpers.py,sha256=PXMUaRLY7MlWsV91r-_jORXsc3uBZRfMgkccyxadodk,2589
|
|
4
|
+
vtkio/simplified.py,sha256=qRffaU2vO1obEmj8mVJrxtU4BBcAD43UZGiSq_poj4I,29653
|
|
5
|
+
vtkio/utilities.py,sha256=_1f3pQWW_NeJzGJSVB4kbQJHBypmfx32F5GD07--qTg,7010
|
|
6
|
+
vtkio/version.py,sha256=F9eedgAbQ0u6Jll6B9iaHWIHl4bOvFZo356HH01tXuI,2041
|
|
7
|
+
vtkio/vtk_cell_types.py,sha256=yJcEfQT3bgDzqESQu-A7HTMqgLjLIeI2Uez9YswYR80,4320
|
|
8
|
+
vtkio/vtk_structures.py,sha256=-pn0o_XgX6aP-nOERCBRjllKf8N4V1CoocUhmHi6MTY,9467
|
|
9
|
+
vtkio/reader/__init__.py,sha256=YkKmnhaRd85iVxbl66rIfuuF6uJ6PSP42whJ4Hdt4HE,305
|
|
10
|
+
vtkio/reader/hdf5.py,sha256=9mthhFCwlCwOyI6VqKwW_Ce_rdOHfBmuK4RJAJkSLq4,12872
|
|
11
|
+
vtkio/reader/xml.py,sha256=s9m0dtqLVSgotBaM96RZhvpPJZxaAMiXG-CnQ-pbs10,26655
|
|
12
|
+
vtkio/writer/__init__.py,sha256=5fgtre23Sqxku6zECf8mJy95rxN6_GnrcB0d6xerw90,338
|
|
13
|
+
vtkio/writer/pvd_writer.py,sha256=3YUvZW4aJs7K89ZxeYDeA3nmWUsxC6sdXmKgBIYe8bk,3494
|
|
14
|
+
vtkio/writer/vtkhdf.py,sha256=LbC1HCjegKKv_H8tooHtnKr_DrwqSMd-oRfMFz67518,56881
|
|
15
|
+
vtkio/writer/writers.py,sha256=bqu62AofT5e6V2eL-Pc4f8QgDg03U_uS882AG-tvjDM,18735
|
|
16
|
+
vtkio/writer/xml_writer.py,sha256=oQl3cIxrywwRFCdPrlHs_JP4tiAN0I202DpAv1P-fi8,59981
|
|
17
|
+
vtkio-0.1.0.dev2.dist-info/METADATA,sha256=xTCJYhDcQtkXXU2Gkp5hfLLXiHeW2jU356znxDfh5KI,4165
|
|
18
|
+
vtkio-0.1.0.dev2.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
19
|
+
vtkio-0.1.0.dev2.dist-info/licenses/LICENSE,sha256=2Q5OODW8zpcArqMHz_8hTAMmyGDUVvR52US4UkgPbiY,1533
|
|
20
|
+
vtkio-0.1.0.dev2.dist-info/RECORD,,
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
BSD 3-Clause License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2021-2025, John Paul Morrissey. All rights reserved.
|
|
4
|
+
|
|
5
|
+
Redistribution and use in source and binary forms, with or without
|
|
6
|
+
modification, are permitted provided that the following conditions are met:
|
|
7
|
+
|
|
8
|
+
1. Redistributions of source code must retain the above copyright notice, this
|
|
9
|
+
list of conditions and the following disclaimer.
|
|
10
|
+
|
|
11
|
+
2. Redistributions in binary form must reproduce the above copyright notice,
|
|
12
|
+
this list of conditions and the following disclaimer in the documentation
|
|
13
|
+
and/or other materials provided with the distribution.
|
|
14
|
+
|
|
15
|
+
3. Neither the name of the copyright holder nor the names of its
|
|
16
|
+
contributors may be used to endorse or promote products derived from
|
|
17
|
+
this software without specific prior written permission.
|
|
18
|
+
|
|
19
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
20
|
+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
21
|
+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
22
|
+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
23
|
+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
24
|
+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
25
|
+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
26
|
+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
27
|
+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
28
|
+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|