Coder Social home page Coder Social logo

Comments (2)

ross avatar ross commented on August 19, 2024

of those two links, i believe the 2nd (streaming, data=) is the route you want to take to avoid loading it all in to memory. that said the server will need to accept the data as the body of the request, it won't be form-multipart-encoded which might be why that route isn't working for you. (it's a different way of handling the data.)

the comment at the end of the 1st link seems to point to another package that helps with multipart encoding of large files. i haven't tried it, but that seems to be what you'd be looking for.

"In the event you are posting a very large file as a multipart/form-data request, you 
may want to stream the request. By default, requests does not support this, but there 
is a separate package which does - requests-toolbelt. You should read the toolbelt’s 
documentation for more details about how to use it."

regardless of route the solution shouldn't be specific to requests-futures as it does it's best to give you raw access to requests without getting in the way.

from requests-futures.

quentindemetz avatar quentindemetz commented on August 19, 2024

Alright, requests-toolbelt works great with request-futures, thanks for the pointer!

from requests-futures.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.