f3d 3.0.0rc5__cp313-cp313-win_amd64.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 f3d might be problematic. Click here for more details.

f3d/__init__.py ADDED
@@ -0,0 +1,94 @@
1
+ # This file is auto-generated by CMake, do not edit!
2
+ # Refer to python/__init__.py.in source file
3
+
4
+ import os
5
+ import re
6
+ import sys
7
+ import warnings
8
+ from pathlib import Path
9
+ from typing import Any, Iterable, Mapping, Union
10
+
11
+ F3D_ABSOLUTE_DLLS = [
12
+ #
13
+ ]
14
+ F3D_RELATIVE_DLLS = [
15
+ # generated at build
16
+ 'bin',
17
+
18
+ ]
19
+ if sys.version_info >= (3, 8) and sys.platform == "win32":
20
+ for abs_path in F3D_ABSOLUTE_DLLS:
21
+ os.add_dll_directory(abs_path)
22
+ root = Path(__file__).parent
23
+ for rel_path in F3D_RELATIVE_DLLS:
24
+ os.add_dll_directory((root / rel_path).resolve())
25
+
26
+ from .pyf3d import *
27
+
28
+ # Automatically load plugins for the user
29
+ Engine.autoload_plugins()
30
+
31
+ __version__ = "3.0.0"
32
+
33
+
34
+ ################################################################################
35
+ # monkey patch `options.update`
36
+
37
+
38
+ def _f3d_options_update(
39
+ self, arg: Union[Mapping[str, Any], Iterable[tuple[str, Any]]]
40
+ ) -> None:
41
+ try:
42
+ for k, v in arg.items():
43
+ self[k] = v
44
+ return
45
+ except AttributeError: # `arg` doesn't have `.items()`
46
+ pass
47
+
48
+ try:
49
+ for k, v in arg:
50
+ self[k] = v
51
+ return
52
+ except TypeError: # `arg` isn't iterable
53
+ pass
54
+ except ValueError: # `arg` isn't iterable of pairs
55
+ pass
56
+
57
+ raise ValueError(f"cannot update {self} from {arg}")
58
+
59
+
60
+ Options.update = _f3d_options_update
61
+
62
+
63
+ ################################################################################
64
+ # add deprecated warnings
65
+
66
+
67
+ def _deprecated_decorator(f, reason):
68
+ def g(*args, **kwargs):
69
+ warnings.warn(reason, DeprecationWarning, 2)
70
+ return f(*args, **kwargs)
71
+
72
+ return g
73
+
74
+
75
+ def _add_deprecation_warnings():
76
+ for f3d_class in (
77
+ Camera,
78
+ Scene,
79
+ Options,
80
+ Interactor,
81
+ Engine,
82
+ Window,
83
+ Image,
84
+ ):
85
+ for name, member in f3d_class.__dict__.items():
86
+ if callable(member) and member.__doc__:
87
+ m = re.search(r"DEPRECATED(:\s*.+)?", member.__doc__)
88
+ if m:
89
+ reason = m.group(1) or ""
90
+ msg = f"{f3d_class.__qualname__}.{name} is deprecated{reason}"
91
+ setattr(f3d_class, name, _deprecated_decorator(member, msg))
92
+
93
+
94
+ _add_deprecation_warnings()
f3d/__init__.pyi ADDED
@@ -0,0 +1,35 @@
1
+ from __future__ import annotations
2
+ from f3d.pyf3d import Camera
3
+ from f3d.pyf3d import CameraState
4
+ from f3d.pyf3d import Engine
5
+ from f3d.pyf3d import Image
6
+ from f3d.pyf3d import InteractionBind
7
+ from f3d.pyf3d import Interactor
8
+ from f3d.pyf3d import LibInformation
9
+ from f3d.pyf3d import Log
10
+ from f3d.pyf3d import Mesh
11
+ from f3d.pyf3d import Options
12
+ from f3d.pyf3d import ReaderInformation
13
+ from f3d.pyf3d import Scene
14
+ from f3d.pyf3d import Utils
15
+ from f3d.pyf3d import Window
16
+ import os as os
17
+ import pathlib._local
18
+ from pathlib._local import Path
19
+ import re as re
20
+ import sys as sys
21
+ from typing import Any
22
+ import warnings as warnings
23
+ from . import pyf3d
24
+ __all__ = ['Any', 'Camera', 'CameraState', 'Engine', 'F3D_ABSOLUTE_DLLS', 'F3D_RELATIVE_DLLS', 'Image', 'InteractionBind', 'Interactor', 'LibInformation', 'Log', 'Mesh', 'Options', 'Path', 'ReaderInformation', 'Scene', 'Utils', 'Window', 'abs_path', 'os', 'pyf3d', 're', 'root', 'sys', 'warnings']
25
+ def _add_deprecation_warnings():
26
+ ...
27
+ def _deprecated_decorator(f, reason):
28
+ ...
29
+ def _f3d_options_update(self, arg: typing.Union[typing.Mapping[str, typing.Any], typing.Iterable[tuple[str, typing.Any]]]) -> None:
30
+ ...
31
+ F3D_ABSOLUTE_DLLS: list = ['D:/a/f3d-superbuild/f3d-superbuild/fsbb/install/bin', 'D:/a/f3d-superbuild/f3d-superbuild/fsbb/install/lib', 'C:/Users/runneradmin/AppData/Local/Temp/tmp1w_v5d8t/build/bin']
32
+ F3D_RELATIVE_DLLS: list = list()
33
+ __version__: str = '3.0.0'
34
+ abs_path: str = 'C:/Users/runneradmin/AppData/Local/Temp/tmp1w_v5d8t/build/bin'
35
+ root: pathlib._local.WindowsPath # value = WindowsPath('C:/Users/runneradmin/AppData/Local/Temp/tmp1w_v5d8t/build/f3d')
f3d/bin/f3d.dll ADDED
Binary file
Binary file
f3d/bin/zlib.dll ADDED
Binary file
Binary file