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 simple-cors-proxy
Usage
from simple_cors_proxy import cors_proxy
# 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
Features
- Simple CORS proxy wrapper
- Requests-like response object
- Support for URL parameters
- JSON parsing
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
File details
Details for the file jupyterlite_simple_cors_proxy-0.0.1.tar.gz
.
File metadata
- Download URL: jupyterlite_simple_cors_proxy-0.0.1.tar.gz
- Upload date:
- Size: 2.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f8700b2f5ed68c1a101c16898fd5f5545740499c847ab72087b6cce4234c0177 |
|
MD5 | 2371a30760845295ffa002692f0c1802 |
|
BLAKE2b-256 | f1081abc07dba157b50abdf39938c1bd5fa338f260d502f2c122cff7ac12b686 |
File details
Details for the file jupyterlite_simple_cors_proxy-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: jupyterlite_simple_cors_proxy-0.0.1-py3-none-any.whl
- Upload date:
- Size: 3.5 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 | 673d06c2d2694806b3da9d4b82d77a473bfafe5d0634407056cbc2de33192955 |
|
MD5 | db89d141aec41fb46f5de5fee1ea39b4 |
|
BLAKE2b-256 | c0c481313bd83d1b6f58b84822ef9e2a4dfa3954db67a5d2faf63921fb03d337 |