Comments (5)
So to confirm if I understood correctly, the callback function would dynamically decide (based on the field name) what to do with the contained data?
If that's the case, that might not work as well in case someone uploads a huge file which would all end up being stored in memory. Streaming it directly to a file keeps the memory usage low.
from streaming-form-data.
At the moment it does not. PRs/discussion welcome though!
from streaming-form-data.
Hi, sorry for slow response.
I was just wondering if there is a module to increase the performance of parsing multipart/form-data
requests that can be combined with "other frameworks". Literally parsing the raw body of multipart/form-data just like the python-multipart
module does.
I'm currently experimenting, creating a web framework based on ASGI. To parse the multipart/form-data
query I followed the starlette
framework. You can see it here: https://github.com/aprilahijriyan/allin/blob/main/allin/parser.py#L88
I'm asking about this because I wanted to try using your module to see how it performs. ✌🏽
I suggest it might be better to follow what the python-multipart
module does. such as adding a callback to hold all the data contained in it.
from streaming-form-data.
what to do with the contained data?
store data in tempfile.NamedTemporaryFile
?
from streaming-form-data.
I didn't mean that as a question. I meant it more in the sense of confirming what @aprilahijriyan was referring to.
Unless you were referring to some other workflow, in which case maybe you could leave a bit more detail on how that process would work with storing data in a temp file?
from streaming-form-data.
Related Issues (20)
- No wheels deployed HOT 3
- Build fails without Python2 headers HOT 5
- Ubuntu Server slow speed HOT 1
- How do you read file name? HOT 2
- Support for AsyncIO HOT 2
- Install failure with pip 20 and setuptools 46 HOT 8
- __pyx_check_sizeof_voidp = 1 / (int)(SIZEOF_VOID_P == sizeof(void*)) A wheel is created for you to put on pypi. HOT 6
- Any ideas how to deal with excel files in streaming ? HOT 1
- Get file name HOT 2
- Handling multi-valued fields? HOT 10
- Parser won't get registered and receive chunk data as a flask_appbuilder app in airflow webserver ui HOT 5
- How to use to read image file? HOT 2
- Move C declarations to a .pxd file to be available to other Cython modules. HOT 7
- handler _parser.data_received failed with delimiting multipart stream into parts HOT 1
- `cgi` is being deprecated in 3.13 HOT 1
- smart-open as an optional dependency HOT 3
- How to validate content-type? HOT 7
- Question: Is it possible to raise an error when data for a non-registered target is parsed? HOT 7
- Fails to install with PyPy 3.10 on Windows HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from streaming-form-data.