lam-cli 0.1.0__py3-none-any.whl → 0.1.2__py3-none-any.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.
lam/lam.py CHANGED
@@ -486,8 +486,14 @@ def run(program_file: str, input: str, language: str, workspace_id: str,
486
486
  'stats': stats_data,
487
487
  'error': error or None
488
488
  }
489
+ logger.info(f"Final stats: {stats_data}")
490
+
491
+ # If result is an array, wrap it in "lam.result"
492
+ if isinstance(result, list):
493
+ result = {"lam.result": result}
494
+
489
495
  with open(result_file, 'w') as f:
490
- json.dump(result_with_stats, f, indent=4)
496
+ json.dump(result, f, indent=4)
491
497
 
492
498
  except Exception as e:
493
499
  stats_data = stats.finalize()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: lam-cli
3
- Version: 0.1.0
3
+ Version: 0.1.2
4
4
  Summary: Secure data transformation tool supporting JQ and JavaScript (Bun)
5
5
  Home-page: https://github.com/laminar-run/lam
6
6
  Author: Laminar Run, Inc.
@@ -194,3 +194,47 @@ Update dependencies:
194
194
  pip3 install <package>
195
195
  pip3 freeze > requirements.txt
196
196
  ```
197
+
198
+ ## Install Locally
199
+
200
+ ```bash
201
+ pip3 install -e .
202
+ ```
203
+
204
+ ## Troubleshooting
205
+
206
+ ### Package Installation Issues
207
+ If you encounter issues installing the package with pip, particularly with the certifi dependency, you may see errors like:
208
+
209
+ ```bash
210
+ error: uninstall-no-record-file
211
+ × Cannot uninstall certifi None
212
+ ╰─> The package's contents are unknown: no RECORD file was found for certifi.
213
+ ```
214
+ This can happen when multiple Python versions are installed or when system packages have been modified. Try these steps:
215
+
216
+ First, identify which Python version you're using:
217
+
218
+ ```bash
219
+ which python3
220
+ python3 --version
221
+ which pip3
222
+ ```
223
+
224
+ Remove the problematic certifi installation (adjust path based on your Python version):
225
+
226
+ ```bash
227
+ sudo rm -rf /usr/local/lib/python3.13/site-packages/certifi
228
+ ```
229
+
230
+ Install certifi directly:
231
+
232
+ ```bash
233
+ pip3 install --ignore-installed certifi --break-system-packages
234
+ ```
235
+
236
+ Then try installing lam-cli again:
237
+
238
+ ```bash
239
+ pip3 install . --break-system-packages
240
+ ```
@@ -0,0 +1,8 @@
1
+ lam/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
+ lam/lam.py,sha256=S3DOSyLLmbpUPpDmPsM6ND-TQUZs3yIZd2Lwx6XirVs,18126
3
+ lam_cli-0.1.2.dist-info/LICENSE,sha256=ixuiBLtpoK3iv89l7ylKkg9rs2GzF9ukPH7ynZYzK5s,35148
4
+ lam_cli-0.1.2.dist-info/METADATA,sha256=fPWtIn4tKSom9fh77-jro4o-zWSXlEvo_K4OkF5cRYI,5645
5
+ lam_cli-0.1.2.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
6
+ lam_cli-0.1.2.dist-info/entry_points.txt,sha256=iJSsJitcGMikKJ3Q9KNWxEy911oTrSxGSO1HiwcBrKE,40
7
+ lam_cli-0.1.2.dist-info/top_level.txt,sha256=WyM7-Ig60qQH9meqS293pEd83jrMtbvGJM8ALZOQCtA,4
8
+ lam_cli-0.1.2.dist-info/RECORD,,
@@ -0,0 +1,2 @@
1
+ [console_scripts]
2
+ laminar = lam.lam:lam
@@ -1,8 +0,0 @@
1
- lam/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
- lam/lam.py,sha256=22zXRw3pz0yQvsORvpWIdUjmvaFhP_6_DMkw02_CG1o,17939
3
- lam_cli-0.1.0.dist-info/LICENSE,sha256=ixuiBLtpoK3iv89l7ylKkg9rs2GzF9ukPH7ynZYzK5s,35148
4
- lam_cli-0.1.0.dist-info/METADATA,sha256=z2GeyYTNb3x8gM4Px8XUlldd8UpC86ZyUunGeO6SeQM,4674
5
- lam_cli-0.1.0.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
6
- lam_cli-0.1.0.dist-info/entry_points.txt,sha256=ph7QV6H2VWqf9fU5rtoAgEabDgZ4f85ZImdLXeBmdfA,36
7
- lam_cli-0.1.0.dist-info/top_level.txt,sha256=WyM7-Ig60qQH9meqS293pEd83jrMtbvGJM8ALZOQCtA,4
8
- lam_cli-0.1.0.dist-info/RECORD,,
@@ -1,2 +0,0 @@
1
- [console_scripts]
2
- lam = lam.lam:lam