Closed juanpablovs closed 9 months ago
possible solution: rewrite pybundlr in node
FYI there is already a bundlr JS SDK.
The point of pybundlr is the "py" part: to be readily accessible in python
execute a python subprocess that is fetched with a js file
Please elaborate. FYI there's a python library called "javascript" that makes JS code look like a python library. So one option would be to wrap the bundlr SDK this way.
see if bundlr's API works so we can replace the CLI
this is the simplest
JP & I discussed: we're going with using JS <> py integration
using JS <> py integration
Here are a couple recent blog posts of interest, each showing a JS <> py integratoin.
Low priority for predict-eth, because we're using ERC725 for now.
Background / motivation
Pybundlr currently uses use bundlr's CLI. bundlr's CLI needs to be installed globally via node. This creates many problems for users. Perhaps most notably, in node, the default installation does not allow for global installs.
A solution would be to find a way to execute bundlr's CLI without a global install
Candidate solutions
Analysis of candidates
There is already a bundlr JS SDK. The point of pybundlr is the "py" part: to be readily accessible in python
This needs elaboration. Feels like a lot of moving parts though
As of Nov 2022, this is poorly documented. Not clear how to use it. If we really needed, however, we could see if & how the Bundlr JS SDK uses it
Promising, should explore more
Our (Ocean's) main use case for pybundlr was Predict-ETH Challenge.
As of late Feb 2023, for Predict-ETH Round 4, we removed the need for bundlr.
This has lowered the priority of this issue for Ocean.