Install & Compatibility
Where this runs
tested against v1.0.0 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
muslpy 3.10–3.95 runs
installs and imports cleanly · install 0.0s · import 0.410s · 21.5MB
glibcpy 3.10–3.95 runs
installs and imports cleanly · install 2.4s · import 0.388s · 22MB
20MB installed
● package 20MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
MultipartEncoder
✓ from requests_toolbelt.multipart.encoder import MultipartEncoder
Ensure correct import path to access MultipartEncoder class.
Example of using MultipartEncoder from requests_toolbelt to send a multipart/form-data POST request.
import requests
from requests_toolbelt.multipart.encoder import MultipartEncoder
url = 'http://httpbin.org/post'
m = MultipartEncoder(fields={'field0': 'value0', 'field1': 'value1'})
response = requests.post(url, data=m, headers={'Content-Type': m.content_type})
print(response.text)
Upgrade
Version history
1.0.0latest on PyPI · released May 1, 2023
Audit
Dependencies
No dependency data recorded yet.