Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Standalone importable Library (e.g. libzeronet) #254

Open
azcoppen opened this issue Feb 2, 2016 · 5 comments

Comments

Projects
None yet
3 participants
@azcoppen
Copy link

commented Feb 2, 2016

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.

@HelloZeroNet

This comment has been minimized.

Copy link
Owner

commented Feb 2, 2016

The easiest way to do this is using websocket api, the right version and dependencies also required if its imported as library.

@azcoppen

This comment has been minimized.

Copy link
Author

commented Feb 4, 2016

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/

@HelloZeroNet

This comment has been minimized.

Copy link
Owner

commented Feb 4, 2016

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/

@up4

This comment has been minimized.

Copy link

commented Jun 27, 2016

Hi guys! For your information, I'm trying something about this. More info here 0net://libzeronet.bit

@ghost

This comment has been minimized.

Copy link

commented Apr 14, 2017

@azcoppen have you managed to produce something ?
is this issue still actual?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.