A simple CORS proxy utility with requests-like response
Project description
jupyterlite-simple-cors-proxy
Simple CORS proxy for making http requests from JupyterLite
Installation
pip install jupyterlite-simple-cors-proxy
Usage
from simple_cors_proxy import cors_proxy_get, robust_get_request
# Make a request
url = "https://api.example.com/data"
params = {"key": "value"}
response = cors_proxy(url, params)
# Use like requests
print(response.text)
data = response.json()
raw = response.content
The robust_get_request() will first try a simple reuqst, then a proxied request: robust_get_request(url, params)
Features
- Simple CORS proxy wrapper
- Requests response object
- Support for URL parameters
Project details
Release history Release notifications | RSS feed
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file jupyterlite_simple_cors_proxy-0.1.3.tar.gz.
File metadata
- Download URL: jupyterlite_simple_cors_proxy-0.1.3.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ac9cb3196fbd32bb69e518cc745cbe149727acacfba70afe791487c2f80ebfbe
|
|
| MD5 |
b52b20d07f089c01e75c5fc1de8e8b73
|
|
| BLAKE2b-256 |
d8a620206524577fdbc7c265e60385f773b3ea7f39adc17d37066a025b3d3608
|
File details
Details for the file jupyterlite_simple_cors_proxy-0.1.3-py3-none-any.whl.
File metadata
- Download URL: jupyterlite_simple_cors_proxy-0.1.3-py3-none-any.whl
- Upload date:
- Size: 3.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
33815826b5add4dd63be5b45f21fae13fa30bbcb053649dc1faff5f05de8ea9e
|
|
| MD5 |
744f82b46db4639565a3345180851b56
|
|
| BLAKE2b-256 |
44abc257d54fa236de8e9403d2e86e754fee6e5d43d25e3a460feb91c801caed
|