Skip to main content

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


Download files

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

Source Distribution

jupyterlite_simple_cors_proxy-0.1.3.tar.gz (2.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file jupyterlite_simple_cors_proxy-0.1.3.tar.gz.

File metadata

File hashes

Hashes for jupyterlite_simple_cors_proxy-0.1.3.tar.gz
Algorithm Hash digest
SHA256 ac9cb3196fbd32bb69e518cc745cbe149727acacfba70afe791487c2f80ebfbe
MD5 b52b20d07f089c01e75c5fc1de8e8b73
BLAKE2b-256 d8a620206524577fdbc7c265e60385f773b3ea7f39adc17d37066a025b3d3608

See more details on using hashes here.

File details

Details for the file jupyterlite_simple_cors_proxy-0.1.3-py3-none-any.whl.

File metadata

File hashes

Hashes for jupyterlite_simple_cors_proxy-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 33815826b5add4dd63be5b45f21fae13fa30bbcb053649dc1faff5f05de8ea9e
MD5 744f82b46db4639565a3345180851b56
BLAKE2b-256 44abc257d54fa236de8e9403d2e86e754fee6e5d43d25e3a460feb91c801caed

See more details on using hashes here.

Supported by

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