swigex0 0.3.8__cp314-cp314-win32.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.
- swigex0/__init__.py +278 -0
- swigex0/_swigex0.pyd +0 -0
- swigex0/version.py +2 -0
- swigex0-0.3.8.dist-info/METADATA +31 -0
- swigex0-0.3.8.dist-info/RECORD +7 -0
- swigex0-0.3.8.dist-info/WHEEL +5 -0
- swigex0-0.3.8.dist-info/top_level.txt +2 -0
swigex0/__init__.py
ADDED
|
@@ -0,0 +1,278 @@
|
|
|
1
|
+
# This file was automatically generated by SWIG (https://www.swig.org).
|
|
2
|
+
# Version 4.3.1
|
|
3
|
+
#
|
|
4
|
+
# Do not make changes to this file unless you know what you are doing - modify
|
|
5
|
+
# the SWIG interface file instead.
|
|
6
|
+
|
|
7
|
+
from sys import version_info as _swig_python_version_info
|
|
8
|
+
# Import the low-level C/C++ module
|
|
9
|
+
if __package__ or "." in __name__:
|
|
10
|
+
from . import _swigex0
|
|
11
|
+
else:
|
|
12
|
+
import _swigex0
|
|
13
|
+
|
|
14
|
+
try:
|
|
15
|
+
import builtins as __builtin__
|
|
16
|
+
except ImportError:
|
|
17
|
+
import __builtin__
|
|
18
|
+
|
|
19
|
+
def _swig_repr(self):
|
|
20
|
+
try:
|
|
21
|
+
strthis = "proxy of " + self.this.__repr__()
|
|
22
|
+
except __builtin__.Exception:
|
|
23
|
+
strthis = ""
|
|
24
|
+
return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
def _swig_setattr_nondynamic_instance_variable(set):
|
|
28
|
+
def set_instance_attr(self, name, value):
|
|
29
|
+
if name == "this":
|
|
30
|
+
set(self, name, value)
|
|
31
|
+
elif name == "thisown":
|
|
32
|
+
self.this.own(value)
|
|
33
|
+
elif hasattr(self, name) and isinstance(getattr(type(self), name), property):
|
|
34
|
+
set(self, name, value)
|
|
35
|
+
else:
|
|
36
|
+
raise AttributeError("You cannot add instance attributes to %s" % self)
|
|
37
|
+
return set_instance_attr
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
def _swig_setattr_nondynamic_class_variable(set):
|
|
41
|
+
def set_class_attr(cls, name, value):
|
|
42
|
+
if hasattr(cls, name) and not isinstance(getattr(cls, name), property):
|
|
43
|
+
set(cls, name, value)
|
|
44
|
+
else:
|
|
45
|
+
raise AttributeError("You cannot add class attributes to %s" % cls)
|
|
46
|
+
return set_class_attr
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
def _swig_add_metaclass(metaclass):
|
|
50
|
+
"""Class decorator for adding a metaclass to a SWIG wrapped class - a slimmed down version of six.add_metaclass"""
|
|
51
|
+
def wrapper(cls):
|
|
52
|
+
return metaclass(cls.__name__, cls.__bases__, cls.__dict__.copy())
|
|
53
|
+
return wrapper
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
class _SwigNonDynamicMeta(type):
|
|
57
|
+
"""Meta class to enforce nondynamic attributes (no new attributes) for a class"""
|
|
58
|
+
__setattr__ = _swig_setattr_nondynamic_class_variable(type.__setattr__)
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
import weakref
|
|
62
|
+
|
|
63
|
+
class SwigPyIterator(object):
|
|
64
|
+
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
|
|
65
|
+
|
|
66
|
+
def __init__(self, *args, **kwargs):
|
|
67
|
+
raise AttributeError("No constructor defined - class is abstract")
|
|
68
|
+
__repr__ = _swig_repr
|
|
69
|
+
__swig_destroy__ = _swigex0.delete_SwigPyIterator
|
|
70
|
+
|
|
71
|
+
def value(self):
|
|
72
|
+
return _swigex0.SwigPyIterator_value(self)
|
|
73
|
+
|
|
74
|
+
def incr(self, n=1):
|
|
75
|
+
return _swigex0.SwigPyIterator_incr(self, n)
|
|
76
|
+
|
|
77
|
+
def decr(self, n=1):
|
|
78
|
+
return _swigex0.SwigPyIterator_decr(self, n)
|
|
79
|
+
|
|
80
|
+
def distance(self, x):
|
|
81
|
+
return _swigex0.SwigPyIterator_distance(self, x)
|
|
82
|
+
|
|
83
|
+
def equal(self, x):
|
|
84
|
+
return _swigex0.SwigPyIterator_equal(self, x)
|
|
85
|
+
|
|
86
|
+
def copy(self):
|
|
87
|
+
return _swigex0.SwigPyIterator_copy(self)
|
|
88
|
+
|
|
89
|
+
def next(self):
|
|
90
|
+
return _swigex0.SwigPyIterator_next(self)
|
|
91
|
+
|
|
92
|
+
def __next__(self):
|
|
93
|
+
return _swigex0.SwigPyIterator___next__(self)
|
|
94
|
+
|
|
95
|
+
def previous(self):
|
|
96
|
+
return _swigex0.SwigPyIterator_previous(self)
|
|
97
|
+
|
|
98
|
+
def advance(self, n):
|
|
99
|
+
return _swigex0.SwigPyIterator_advance(self, n)
|
|
100
|
+
|
|
101
|
+
def __eq__(self, x):
|
|
102
|
+
return _swigex0.SwigPyIterator___eq__(self, x)
|
|
103
|
+
|
|
104
|
+
def __ne__(self, x):
|
|
105
|
+
return _swigex0.SwigPyIterator___ne__(self, x)
|
|
106
|
+
|
|
107
|
+
def __iadd__(self, n):
|
|
108
|
+
return _swigex0.SwigPyIterator___iadd__(self, n)
|
|
109
|
+
|
|
110
|
+
def __isub__(self, n):
|
|
111
|
+
return _swigex0.SwigPyIterator___isub__(self, n)
|
|
112
|
+
|
|
113
|
+
def __add__(self, n):
|
|
114
|
+
return _swigex0.SwigPyIterator___add__(self, n)
|
|
115
|
+
|
|
116
|
+
def __sub__(self, *args):
|
|
117
|
+
return _swigex0.SwigPyIterator___sub__(self, *args)
|
|
118
|
+
def __iter__(self):
|
|
119
|
+
return self
|
|
120
|
+
|
|
121
|
+
# Register SwigPyIterator in _swigex0:
|
|
122
|
+
_swigex0.SwigPyIterator_swigregister(SwigPyIterator)
|
|
123
|
+
class VectorInt(object):
|
|
124
|
+
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
|
|
125
|
+
__repr__ = _swig_repr
|
|
126
|
+
|
|
127
|
+
def iterator(self):
|
|
128
|
+
return _swigex0.VectorInt_iterator(self)
|
|
129
|
+
def __iter__(self):
|
|
130
|
+
return self.iterator()
|
|
131
|
+
|
|
132
|
+
def __nonzero__(self):
|
|
133
|
+
return _swigex0.VectorInt___nonzero__(self)
|
|
134
|
+
|
|
135
|
+
def __bool__(self):
|
|
136
|
+
return _swigex0.VectorInt___bool__(self)
|
|
137
|
+
|
|
138
|
+
def __len__(self):
|
|
139
|
+
return _swigex0.VectorInt___len__(self)
|
|
140
|
+
|
|
141
|
+
def __getslice__(self, i, j):
|
|
142
|
+
return _swigex0.VectorInt___getslice__(self, i, j)
|
|
143
|
+
|
|
144
|
+
def __setslice__(self, *args):
|
|
145
|
+
return _swigex0.VectorInt___setslice__(self, *args)
|
|
146
|
+
|
|
147
|
+
def __delslice__(self, i, j):
|
|
148
|
+
return _swigex0.VectorInt___delslice__(self, i, j)
|
|
149
|
+
|
|
150
|
+
def __delitem__(self, *args):
|
|
151
|
+
return _swigex0.VectorInt___delitem__(self, *args)
|
|
152
|
+
|
|
153
|
+
def __getitem__(self, *args):
|
|
154
|
+
return _swigex0.VectorInt___getitem__(self, *args)
|
|
155
|
+
|
|
156
|
+
def __setitem__(self, *args):
|
|
157
|
+
return _swigex0.VectorInt___setitem__(self, *args)
|
|
158
|
+
|
|
159
|
+
def pop(self):
|
|
160
|
+
return _swigex0.VectorInt_pop(self)
|
|
161
|
+
|
|
162
|
+
def append(self, x):
|
|
163
|
+
return _swigex0.VectorInt_append(self, x)
|
|
164
|
+
|
|
165
|
+
def empty(self):
|
|
166
|
+
return _swigex0.VectorInt_empty(self)
|
|
167
|
+
|
|
168
|
+
def size(self):
|
|
169
|
+
return _swigex0.VectorInt_size(self)
|
|
170
|
+
|
|
171
|
+
def swap(self, v):
|
|
172
|
+
return _swigex0.VectorInt_swap(self, v)
|
|
173
|
+
|
|
174
|
+
def begin(self):
|
|
175
|
+
return _swigex0.VectorInt_begin(self)
|
|
176
|
+
|
|
177
|
+
def end(self):
|
|
178
|
+
return _swigex0.VectorInt_end(self)
|
|
179
|
+
|
|
180
|
+
def rbegin(self):
|
|
181
|
+
return _swigex0.VectorInt_rbegin(self)
|
|
182
|
+
|
|
183
|
+
def rend(self):
|
|
184
|
+
return _swigex0.VectorInt_rend(self)
|
|
185
|
+
|
|
186
|
+
def clear(self):
|
|
187
|
+
return _swigex0.VectorInt_clear(self)
|
|
188
|
+
|
|
189
|
+
def get_allocator(self):
|
|
190
|
+
return _swigex0.VectorInt_get_allocator(self)
|
|
191
|
+
|
|
192
|
+
def pop_back(self):
|
|
193
|
+
return _swigex0.VectorInt_pop_back(self)
|
|
194
|
+
|
|
195
|
+
def erase(self, *args):
|
|
196
|
+
return _swigex0.VectorInt_erase(self, *args)
|
|
197
|
+
|
|
198
|
+
def __init__(self, *args):
|
|
199
|
+
_swigex0.VectorInt_swiginit(self, _swigex0.new_VectorInt(*args))
|
|
200
|
+
|
|
201
|
+
def push_back(self, x):
|
|
202
|
+
return _swigex0.VectorInt_push_back(self, x)
|
|
203
|
+
|
|
204
|
+
def front(self):
|
|
205
|
+
return _swigex0.VectorInt_front(self)
|
|
206
|
+
|
|
207
|
+
def back(self):
|
|
208
|
+
return _swigex0.VectorInt_back(self)
|
|
209
|
+
|
|
210
|
+
def assign(self, n, x):
|
|
211
|
+
return _swigex0.VectorInt_assign(self, n, x)
|
|
212
|
+
|
|
213
|
+
def resize(self, *args):
|
|
214
|
+
return _swigex0.VectorInt_resize(self, *args)
|
|
215
|
+
|
|
216
|
+
def insert(self, *args):
|
|
217
|
+
return _swigex0.VectorInt_insert(self, *args)
|
|
218
|
+
|
|
219
|
+
def reserve(self, n):
|
|
220
|
+
return _swigex0.VectorInt_reserve(self, n)
|
|
221
|
+
|
|
222
|
+
def capacity(self):
|
|
223
|
+
return _swigex0.VectorInt_capacity(self)
|
|
224
|
+
__swig_destroy__ = _swigex0.delete_VectorInt
|
|
225
|
+
|
|
226
|
+
# Register VectorInt in _swigex0:
|
|
227
|
+
_swigex0.VectorInt_swigregister(VectorInt)
|
|
228
|
+
|
|
229
|
+
def fibn(n):
|
|
230
|
+
return _swigex0.fibn(n)
|
|
231
|
+
|
|
232
|
+
def fib(n):
|
|
233
|
+
return _swigex0.fib(n)
|
|
234
|
+
class Fibo(object):
|
|
235
|
+
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
|
|
236
|
+
__repr__ = _swig_repr
|
|
237
|
+
|
|
238
|
+
def __init__(self, *args, **kwargs):
|
|
239
|
+
_swigex0.Fibo_swiginit(self, _swigex0.new_Fibo(*args, **kwargs))
|
|
240
|
+
__swig_destroy__ = _swigex0.delete_Fibo
|
|
241
|
+
|
|
242
|
+
def resetFromFiboVal(self, fib):
|
|
243
|
+
return _swigex0.Fibo_resetFromFiboVal(self, fib)
|
|
244
|
+
|
|
245
|
+
def resetFromFiboRef(self, fib):
|
|
246
|
+
return _swigex0.Fibo_resetFromFiboRef(self, fib)
|
|
247
|
+
|
|
248
|
+
def display(self, showTitle=True):
|
|
249
|
+
return _swigex0.Fibo_display(self, showTitle)
|
|
250
|
+
|
|
251
|
+
def getVector(self):
|
|
252
|
+
return _swigex0.Fibo_getVector(self)
|
|
253
|
+
|
|
254
|
+
def getTitle(self):
|
|
255
|
+
return _swigex0.Fibo_getTitle(self)
|
|
256
|
+
|
|
257
|
+
# Register Fibo in _swigex0:
|
|
258
|
+
_swigex0.Fibo_swigregister(Fibo)
|
|
259
|
+
class StdoutRedirect(object):
|
|
260
|
+
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
|
|
261
|
+
__repr__ = _swig_repr
|
|
262
|
+
|
|
263
|
+
def __init__(self, *args, **kwargs):
|
|
264
|
+
_swigex0.StdoutRedirect_swiginit(self, _swigex0.new_StdoutRedirect(*args, **kwargs))
|
|
265
|
+
__swig_destroy__ = _swigex0.delete_StdoutRedirect
|
|
266
|
+
|
|
267
|
+
def start(self, file):
|
|
268
|
+
return _swigex0.StdoutRedirect_start(self, file)
|
|
269
|
+
|
|
270
|
+
def stop(self):
|
|
271
|
+
return _swigex0.StdoutRedirect_stop(self)
|
|
272
|
+
|
|
273
|
+
# Register StdoutRedirect in _swigex0:
|
|
274
|
+
_swigex0.StdoutRedirect_swigregister(StdoutRedirect)
|
|
275
|
+
|
|
276
|
+
|
|
277
|
+
|
|
278
|
+
|
swigex0/_swigex0.pyd
ADDED
|
Binary file
|
swigex0/version.py
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: swigex0
|
|
3
|
+
Version: 0.3.8
|
|
4
|
+
Summary: C++ library and SWIG wrappers (R & Python)
|
|
5
|
+
Author-email: Fabien Ors <fabien.ors@minesparis.psl.eu>
|
|
6
|
+
License-Expression: MIT
|
|
7
|
+
Project-URL: Homepage, https://github.com/fabien-ors/swigex0
|
|
8
|
+
Project-URL: Issues, https://github.com/fabien-ors/swigex0/issues
|
|
9
|
+
Platform: Windows
|
|
10
|
+
Platform: Linux
|
|
11
|
+
Platform: Mac OS-X
|
|
12
|
+
Classifier: Programming Language :: Python :: 3
|
|
13
|
+
Classifier: Programming Language :: C++
|
|
14
|
+
Classifier: Development Status :: 4 - Beta
|
|
15
|
+
Classifier: Environment :: Other Environment
|
|
16
|
+
Classifier: Intended Audience :: Developers
|
|
17
|
+
Classifier: Operating System :: OS Independent
|
|
18
|
+
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
19
|
+
Requires-Python: >=3.8
|
|
20
|
+
Description-Content-Type: text/markdown
|
|
21
|
+
Requires-Dist: numpy<3,>=1.24
|
|
22
|
+
|
|
23
|
+
# swigex0 Python Package
|
|
24
|
+
|
|
25
|
+
Example of a cross-platform C++ library exported in Python and R using SWIG and CMake
|
|
26
|
+
|
|
27
|
+
* Author: Fabien Ors (MINES Paris - PSL University)
|
|
28
|
+
* License: MIT
|
|
29
|
+
* Date: May 2025
|
|
30
|
+
|
|
31
|
+
See official README here : https://github.com/fabien-ors/swigex0
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
swigex0/__init__.py,sha256=jQWxV6TcZqVpHJaeUc9llCJt8NevrY2oChmfVjWW61M,8344
|
|
2
|
+
swigex0/_swigex0.pyd,sha256=LEfwBRmLud9RP0k1aKh6kcsDDE0ebLh-ojPrdkB-Rm4,116224
|
|
3
|
+
swigex0/version.py,sha256=EYwUOa8bZ2WAJFpFtOtOiwyTtSzZgFD4YsRq0fVT4Sg,50
|
|
4
|
+
swigex0-0.3.8.dist-info/METADATA,sha256=f6j6ZnhUZkGZ86nHKUXUropAsFgOnLopDMck2NdUlms,1092
|
|
5
|
+
swigex0-0.3.8.dist-info/WHEEL,sha256=ss28EV1dc-CHaYpf_HDUssp6_cZk0eF1G3E6qYY7F4U,98
|
|
6
|
+
swigex0-0.3.8.dist-info/top_level.txt,sha256=8oyG5v9FqBCtJZA4TYoTCK3ivchSik3ExXOgSDMR624,43
|
|
7
|
+
swigex0-0.3.8.dist-info/RECORD,,
|