Skip to main content

Convert the request data to form-data.

Project description

Multipartformdata

Convert the request data to form-data.

Convert the request data to form-data.

data:
	{
		'id': '23139j76h6t15f',
		'name': 'yhleng'
	}
Example:
	from MultipartFormData.Multipart import MultipartFormData

	e.g.
	data_str = MultipartFormData.to_form_data(data) =>
	------WebKitFormBoundary7MA4YWxkTrZu0gW
	Content-Disposition: form-data; name="id"

	123131313
	------WebKitFormBoundary7MA4YWxkTrZu0gW
	Content-Disposition: form-data; name="name"

	yhleng
	------WebKitFormBoundary7MA4YWxkTrZu0gW--


	e.g.
	headers = {
		"content-type": "multipart/form-data; boundary=1q2w3e4r5t67u9i8u7y6t"
	}
	data_str = MultipartFormData.to_form_data(data, headers=headers)
	--1q2w3e4r5t67u9i8u7y6t
	Content-Disposition: form-data; name="id"

	123131313
	--1q2w3e4r5t67u9i8u7y6t
	Content-Disposition: form-data; name="name"

	yhleng
	--1q2w3e4r5t67u9i8u7y6t--

"""

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

multipartformdata-1.4.tar.gz (6.8 kB view details)

Uploaded Source

Built Distribution

MultipartFormData-1.4-py3-none-any.whl (11.2 kB view details)

Uploaded Python 3

File details

Details for the file multipartformdata-1.4.tar.gz.

File metadata

  • Download URL: multipartformdata-1.4.tar.gz
  • Upload date:
  • Size: 6.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/0.12.17 CPython/3.6.5 Windows/10

File hashes

Hashes for multipartformdata-1.4.tar.gz
Algorithm Hash digest
SHA256 4e1b00a296f0683b289b954d9efd203e8a59c27620d5a582956fb986b2af1d18
MD5 068f61c59f16b274959568ffd931da93
BLAKE2b-256 e666bda4fec204763ac824c9c488447895460a4a728fa21c2fa0b1f503da4f34

See more details on using hashes here.

File details

Details for the file MultipartFormData-1.4-py3-none-any.whl.

File metadata

  • Download URL: MultipartFormData-1.4-py3-none-any.whl
  • Upload date:
  • Size: 11.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/0.12.17 CPython/3.6.5 Windows/10

File hashes

Hashes for MultipartFormData-1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 a155e44913c28bc6dfb5b9c5aebe17193329be00e6df241b8e8e3e60ce167aff
MD5 40e9fcb05d22a55d9a254309e4f061ff
BLAKE2b-256 d556b6f5a229e1195d8fc38951212e099efc5e32043884b0b3dbc4f2dff421cf

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page