Skip to main content

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.

How to Use

First, install the package

pip install jsonrequest

Then, you can use the package.

>>> from jsonrequest.jsonrequest import RequestModel, make_request
>>> r = make_request(RequestModel(endpoint="", method='GET', url='https://google.com'))
>>> r
<Response [200]>
>>> 

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

Metadata

Release files for jsonrequest-JustinRWong 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for jsonrequest-JustinRWong 0.1.3
File Size Uploaded Provenance Actions
jsonrequest_JustinRWong-0.1.3.tar.gz 2.0 kB Without provenance Details for jsonrequest_JustinRWong-0.1.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for jsonrequest-JustinRWong 0.1.3
File Interpreter ABI Platform Actions
jsonrequest_JustinRWong-0.1.3-py3-none-any.whl Python 3 none any Details for jsonrequest_JustinRWong-0.1.3-py3-none-any.whl

Total release size: 3.9 kB

Release files / jsonrequest_JustinRWong-0.1.3.tar.gz

Download URL jsonrequest_JustinRWong-0.1.3.tar.gz
Size 2.0 kB
Tags Source
SHA-256 checksum
How to use checksums
8de89dd199754d60d495c0ae6e069ba05cd3adfcfa2b6368f1ea6a5a4969fe5c
BLAKE2b-256 checksum
How to use checksums
1381273ceef90b0ceb33de0a032c2f3ae9c5037f655f91249af330c677fab87f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.0

Release files / jsonrequest_JustinRWong-0.1.3-py3-none-any.whl

Download URL jsonrequest_JustinRWong-0.1.3-py3-none-any.whl
Size 1.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e3c588a1d27785ead264085ec95910851e33de84c2838096ad7800faa1bb2d86
BLAKE2b-256 checksum
How to use checksums
e19b1c5d10aed80328f27063b6025b3c0be9745d9d225cc88d6e982b2d0fa00b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.0

Security for jsonrequest-JustinRWong 0.1.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.3 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page