PowderWeb icon indicating copy to clipboard operation
PowderWeb copied to clipboard

Can I use it with python as backend

Open odmivolsi opened this issue 5 years ago • 5 comments
trafficstars

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

odmivolsi avatar Aug 25 '20 13:08 odmivolsi

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.

jaruba avatar Aug 25 '20 14:08 jaruba

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?

cddharthsingh avatar Sep 01 '20 07:09 cddharthsingh

@jaruba hey man

odmivolsi avatar Sep 02 '20 09:09 odmivolsi

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

odmivolsi avatar Sep 04 '20 15:09 odmivolsi

@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.

jaruba avatar Sep 04 '20 17:09 jaruba