1

I am planning to use an RPi as a server that only talks in and listens to JSON objects.

The idea is for remote management of the RPi from one windows PC available on the local LAN.

Which python library is best for such simple use?

1 Answer 1

1

I think you are talking about running a RESTful service in your RPi.

If you wanted it to be simple and bootstrap a quick application use Bottle framework or Flask.

Instead, if you want to have a REST application with loads of features ready to use with most of the standards satisfied already for you, use Django with Django Rest Framework.

Sign up to request clarification or add additional context in comments.

4 Comments

I can use a RESTful server, but my application needs do not strictly conform to a CRUD type process. Ex. One command to the Pi is an apt-get update.
I believe, you can still implement that using a web service. Here is an example from Digital Ocean API's developers.digitalocean.com/documentation/v2/…
Is there any library that only receives and outputs json documents over http, leaving the processing of the documents to the application? Can the frameworks you have mentioned above be configured to work as such?
Definitely, you can with the above mentioned frameworks. On a quick search I found this mattrichardson.com/Raspberry-Pi-Flask . Hope you'll get inspiration from this or look for other similar apps.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.