jaruba / PowderWeb

Modern Bittorrent Client with Web UI and Torrent Streaming Capabilities. Also Supports Acestream / SopCast Live Streams, Youtube-dl Links and Local Files.
https://powder.media/
91 stars 24 forks source link

Can I use it with python as backend #58

Open odmivolsi opened 4 years ago

odmivolsi commented 4 years ago

The project that I'm developing uses flask framework in python for back-end. Powder uses node. So is there any way i can use powder in my project

jaruba commented 4 years ago

You can download the binary version from the releases page, then run the Powder Web binary from your python app. If you listen to the output of the Powder Web app, it will print a Master Key. You can then use that Master Key (which changes every time you run Powder Web) with the Web API.

Here are also the command line arguments that it supports.

cddharthsingh commented 4 years ago

I didn't quite understand what did you actually mean by Binary File, Can you please provide a link and steps to integrate binary file with the python app. And is the process of setting up the server same for both node and python version?

odmivolsi commented 4 years ago

@jaruba hey man

odmivolsi commented 4 years ago

@jaruba im facing the same issue man. Please help me out here

jaruba commented 4 years ago

@cddharthsingh @odmivolsi

I guess I wasn't clear enough. You can't run Node.js in Python, obviously, so you will need to run Powder Web separately (or run it's executable from inside Python, your choice) then you can use the Web API to communicate with it.

By "Binary File", I mean the executable, you need to download the version of Powder Web for your OS (Win, Linux or OSX) from the latest release.