psr-factory 5.0.0b15__py3-none-win_amd64.whl → 5.0.0b16__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 CHANGED
@@ -2,6 +2,6 @@
2
2
  # Unauthorized copying of this file, via any medium is strictly prohibited
3
3
  # Proprietary and confidential
4
4
 
5
- __version__ = "5.0.0b15"
5
+ __version__ = "5.0.0b16"
6
6
 
7
7
  from .api import *
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