Lightweight wrapper to make http(s) requests. POST, PATCH, and DELETE requests only support json content.
Project description
JSONRequest
Lightweight wrapper for requests library that only supports Content-Type: application/json.
This only supports GET
, POST
, PATCH
, and DELETE
http(s) request methods.
Note:
This data passed also only applies to application/json
content.
Across multiple times over the past many years in my python projects, I found this codeblock repeated whenever I tried to make various http(s) requests using the requests library and thought it'd be much simpler to pass the method as a parameter instead of changing the function. I created this package as a result. Hope this helps and Happy coding :)
- by Justin
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
Built Distribution
Hashes for jsonrequest-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c7723353ac2f0f97ffb97662b3e27ed1b7d6b1752d4d9886fe0c0a90e2cde271 |
|
MD5 | 22bb4f3d6a45c8b924a1b407af7c0cd6 |
|
BLAKE2b-256 | 769ba05ad392656dcb74e93129cb9840a1a32d80a6991f819890792fc12736a5 |