pytycho 0.2.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.
- pytycho/__init__.py +56 -0
- pytycho/_evaluate.py +836 -0
- pytycho/_static/tycho.js +4164 -0
- pytycho/_thin.py +126 -0
- pytycho/container.py +373 -0
- pytycho/html.py +130 -0
- pytycho/py.typed +0 -0
- pytycho/scene.py +1581 -0
- pytycho/template.html +16 -0
- pytycho-0.2.0.dist-info/METADATA +161 -0
- pytycho-0.2.0.dist-info/RECORD +16 -0
- pytycho-0.2.0.dist-info/WHEEL +4 -0
- pytycho-0.2.0.dist-info/licenses/AUTHORS +7 -0
- pytycho-0.2.0.dist-info/licenses/LICENSE +202 -0
- pytycho-0.2.0.dist-info/licenses/NOTICE +14 -0
- pytycho-0.2.0.dist-info/licenses/THIRD_PARTY_NOTICES.md +68 -0
pytycho/__init__.py
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"""pytycho: the Python side of TyCHO, animated astrodynamics in a single HTML file.
|
|
2
|
+
|
|
3
|
+
Writes a TyCHO scene from NumPy arrays as two files. The scene document ``scene.tys`` describes the
|
|
4
|
+
arrays, and the data container ``data.tyd`` holds them. pytycho DOES NOT hold any dynamics or any
|
|
5
|
+
frame formula of a dynamical model, and it does not interpolate samples. Every array comes from
|
|
6
|
+
the caller.
|
|
7
|
+
"""
|
|
8
|
+
|
|
9
|
+
__version__ = "0.2.0"
|
|
10
|
+
|
|
11
|
+
from ._evaluate import EvaluationError, evaluate
|
|
12
|
+
from .container import Container, ContainerWriter
|
|
13
|
+
from .html import build_embed, build_html, write_html
|
|
14
|
+
from .scene import (
|
|
15
|
+
Scene,
|
|
16
|
+
SceneError,
|
|
17
|
+
TrackSet,
|
|
18
|
+
attr,
|
|
19
|
+
axes,
|
|
20
|
+
body,
|
|
21
|
+
channel,
|
|
22
|
+
driver,
|
|
23
|
+
every,
|
|
24
|
+
grid,
|
|
25
|
+
rotation,
|
|
26
|
+
set_id,
|
|
27
|
+
sets,
|
|
28
|
+
split,
|
|
29
|
+
track,
|
|
30
|
+
)
|
|
31
|
+
|
|
32
|
+
__all__ = [
|
|
33
|
+
"Container",
|
|
34
|
+
"ContainerWriter",
|
|
35
|
+
"EvaluationError",
|
|
36
|
+
"Scene",
|
|
37
|
+
"SceneError",
|
|
38
|
+
"TrackSet",
|
|
39
|
+
"__version__",
|
|
40
|
+
"attr",
|
|
41
|
+
"axes",
|
|
42
|
+
"body",
|
|
43
|
+
"build_embed",
|
|
44
|
+
"build_html",
|
|
45
|
+
"channel",
|
|
46
|
+
"driver",
|
|
47
|
+
"evaluate",
|
|
48
|
+
"every",
|
|
49
|
+
"grid",
|
|
50
|
+
"rotation",
|
|
51
|
+
"set_id",
|
|
52
|
+
"sets",
|
|
53
|
+
"split",
|
|
54
|
+
"track",
|
|
55
|
+
"write_html",
|
|
56
|
+
]
|