rpy-bridge 0.3.3__tar.gz → 0.3.5__tar.gz

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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: rpy-bridge
3
- Version: 0.3.3
3
+ Version: 0.3.5
4
4
  Summary: Python-to-R interoperability engine with environment management, type-safe conversions, data normalization, and safe R function execution.
5
5
  Author-email: Victoria Cheung <victoriakcheung@gmail.com>
6
6
  License: MIT License
@@ -150,12 +150,12 @@ uv sync
150
150
  from pathlib import Path
151
151
  from rpy_bridge import RFunctionCaller
152
152
 
153
- caller = RFunctionCaller(
153
+ rfc = RFunctionCaller(
154
154
  path_to_renv=Path("/path/to/project"),
155
- script_path=Path("/path/to/script.R"),
155
+ script=Path("/path/to/script.R"),
156
156
  )
157
157
 
158
- summary_df = caller.call("summarize_cohort", cohort_df)
158
+ summary_df = rfc.call("summarize_cohort", cohort_df)
159
159
  ```
160
160
 
161
161
  ---
@@ -91,12 +91,12 @@ uv sync
91
91
  from pathlib import Path
92
92
  from rpy_bridge import RFunctionCaller
93
93
 
94
- caller = RFunctionCaller(
94
+ rfc = RFunctionCaller(
95
95
  path_to_renv=Path("/path/to/project"),
96
- script_path=Path("/path/to/script.R"),
96
+ script=Path("/path/to/script.R"),
97
97
  )
98
98
 
99
- summary_df = caller.call("summarize_cohort", cohort_df)
99
+ summary_df = rfc.call("summarize_cohort", cohort_df)
100
100
  ```
101
101
 
102
102
  ---
@@ -9,5 +9,5 @@ Usage example (local script):
9
9
 
10
10
  # Use a local script path (clone or download remote scripts yourself)
11
11
  script_path = "/path/to/cloned/repo/scripts/my_script.R"
12
- caller = RFunctionCaller(path_to_renv=None, script_path=script_path)
12
+ caller = RFunctionCaller(path_to_renv=None, script=script_path)
13
13
  result = caller.call("my_func")
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "rpy-bridge"
3
- version = "0.3.3"
3
+ version = "0.3.5"
4
4
  description = "Python-to-R interoperability engine with environment management, type-safe conversions, data normalization, and safe R function execution."
5
5
  readme = "README.md"
6
6
  license = { file = "LICENSE" }
@@ -6,6 +6,7 @@ continue importing directly from ``rpy_bridge``.
6
6
  """
7
7
 
8
8
  from .rpy2_utils import (
9
+ NamespaceWrapper,
9
10
  RFunctionCaller,
10
11
  activate_renv,
11
12
  align_numeric_dtypes,
@@ -23,6 +24,7 @@ from .rpy2_utils import (
23
24
  __all__ = [
24
25
  "activate_renv",
25
26
  "RFunctionCaller",
27
+ "NamespaceWrapper",
26
28
  "r_namedlist_to_dict",
27
29
  "clean_r_dataframe",
28
30
  "fix_string_nans",