psr-factory 5.0.0b15__py3-none-win_amd64.whl → 5.0.0b17__py3-none-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.
- psr/factory/__init__.py +1 -1
- psr/factory/api.py +23 -0
- psr/factory/factory.dll +0 -0
- psr/factory/factory.pmd +686 -659
- psr/factory/factory.pmk +54 -46
- psr/factory/factorylib.py +4 -0
- psr/factory/libcurl-x64.dll +0 -0
- {psr_factory-5.0.0b15.dist-info → psr_factory-5.0.0b17.dist-info}/METADATA +3 -3
- {psr_factory-5.0.0b15.dist-info → psr_factory-5.0.0b17.dist-info}/RECORD +12 -12
- {psr_factory-5.0.0b15.dist-info → psr_factory-5.0.0b17.dist-info}/WHEEL +0 -0
- {psr_factory-5.0.0b15.dist-info → psr_factory-5.0.0b17.dist-info}/licenses/LICENSE.txt +0 -0
- {psr_factory-5.0.0b15.dist-info → psr_factory-5.0.0b17.dist-info}/top_level.txt +0 -0
psr/factory/__init__.py
CHANGED
psr/factory/api.py
CHANGED
@@ -2264,6 +2264,29 @@ class DataFrame(_BaseObject):
|
|
2264
2264
|
return df_builder.build_polars_dataframe(use_object_dtype=False)
|
2265
2265
|
|
2266
2266
|
|
2267
|
+
def get(self, expression: str) -> Union[int, float, dt.datetime, str, "DataObject", list, None]:
|
2268
|
+
value = Value()
|
2269
|
+
_err = Error()
|
2270
|
+
factorylib.lib.psrd_table_get_property(self._hdr,
|
2271
|
+
_c_str(expression),
|
2272
|
+
value.handler(),
|
2273
|
+
_err.handler())
|
2274
|
+
if _err.code != 0:
|
2275
|
+
raise FactoryException(_err.what)
|
2276
|
+
return value.get()
|
2277
|
+
|
2278
|
+
def set(self, expression: str, value):
|
2279
|
+
_err = Error()
|
2280
|
+
_val = Value()
|
2281
|
+
_val.set(value)
|
2282
|
+
factorylib.lib.psrd_table_set_property(self._hdr, _c_str(expression),
|
2283
|
+
_bytes(expression),
|
2284
|
+
_val.handler(),
|
2285
|
+
_err.handler())
|
2286
|
+
if _err.code != 0:
|
2287
|
+
raise FactoryException(_err.what)
|
2288
|
+
|
2289
|
+
|
2267
2290
|
def load_dataframe(input_file: Union[str, pathlib.Path], **kwargs) -> DataFrame:
|
2268
2291
|
options = kwargs.get("options", None)
|
2269
2292
|
return DataFrame.load_from_file(input_file, options)
|
psr/factory/factory.dll
CHANGED
Binary file
|