Open alexc-hollywood opened 8 years ago
The easiest way to do this is using websocket api, the right version and dependencies also required if its imported as library.
That doesn't seem right. In lieu of something easier like NPM, I'm looking for a static C/C++ library i can import into something like QT which is embeddable, and doesn't involve an installation of Python or the dependencies (e.g. Msgpack).
Or would it be possible to do it this way, by calling the Python code from within QT? http://pythonqt.sourceforge.net/
You can pack gevent and msgpack with your zeronet (there is a download, upack & run zerobundle package for windows), so you won't have to install anything. QT is a GUI library, it has bindings for almost every language. It's also possible to compile python programs into single executable , eg.: http://www.py2exe.org/ or http://www.pyinstaller.org/
Hi guys! For your information, I'm trying something about this. More info here 0net://libzeronet.bit
@azcoppen have you managed to produce something ? is this issue still actual?
I'd like to be able to incorporate Zeronet into other applications so they can access the network to do API calls or basic HTTP requests. Python's great, but running an exec() process in the background requires the client have the right version, and dependencies.
A neat example of this is Popcorn Time, which is built in QT, Android, and iOS. Clients being able to start their own Zeronet server in the background when the app launches, and make requests across a distributed network instead of to a central API server for their data would make them much more resilient.
It would also increase the Zeronet node count - and usage - enormously. Apt, Cocoa, or Composer packages would be incredibly useful.