Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Which python framework will be suitable to rest api only

I am new to Python and looking to build rest full web services using python. Due to some dependency, Could not use any other scripting language.

Anyone can suggest if Python has any api-only kind of framework or if any other lightweight framework for rest APIs in Python.

Thanks, Pooja

like image 283
pooja Avatar asked Jan 19 '18 10:01

pooja


People also ask

Which framework is used for REST API?

Because the REST API is within the integration framework, the REST API can use process automation engine authentication, authorization, and system properties. The REST API controller is a servlet. Performance and tuning for load and scalability is done at the application server level as it is for other web components.

Can Python be used for REST API?

One of the most popular ways to build APIs is the REST architecture style. Python provides some great tools not only to get data from REST APIs but also to build your own Python REST APIs.

What is the best language framework for developing a REST API?

XML: JSON and XML are the two de facto standards for sending and receiving data in REST APIs. Web programming languages such as Python, JavaScript, Ruby on Rails, and Java all have tools for parsing and working with XML and JSON.


1 Answers

Lightweight python frameworks

  1. Flask - http://flask.pocoo.org/
  2. Falcon -https://falconframework.org/
  3. Bottle - https://bottlepy.org/docs/dev/

If using Flask you can use Flask-RESTPlus which has inbuild SwaggerUi - https://flask-restplus.readthedocs.io/en/stable/

like image 125
Amarpreet Singh Avatar answered Oct 14 '22 08:10

Amarpreet Singh