Coronavirus made it tough but we keep working remotely with no delays. Get 15% OFF your First Order
Get 15% OFF your First Order

Programming

Django asynchronous api calls

I’m studying for my Python class and need an explanation.

Create a Django project for asynchronous calls:

Create Django project, start an app and develop the views to make api asynchronous using asyncio. When user sends a post request to api, it should check the json request body and return https response as 200 ok. Then in the background it should divide the file(file details will be given in the request body) in to chunks(example chunk_size:10mb) and read. Once it is done with reading api should return a message as completed.

request json body:

{

“location” : “/home/ubuntu/readfile”,

“filename” : “/sample_file.txt”,

“chunk_size” : “10MB”

}

in the above json code should pick the file sample_file.txt from location and divide into chunks.

Looking for this or a Similar Assignment? Click below to Place your Order

× How can I help you?