![Create React App Officially Deprecated Amid React 19 Compatibility Issues](https://cdn.sanity.io/images/cgdhsj6q/production/04fa08cf844d798abc0e1a6391c129363cc7e2ab-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
jupyterlite-simple-cors-proxy
Advanced tools
Simple CORS proxy wrapper for making http requests from JupyterLite. Uses https://corsproxy.io/
pip install jupyterlite-simple-cors-proxy
from jupyterlite_simple_cors_proxy.proxy import cors_proxy_get, robust_get_request, furl, xurl
# Set up
url = "https://api.example.com/data"
# Optional params
params = {"key": "value"}
# Get a cross-origin proxied url
cross_origin_url = xurl(url) # xurl(url, params)
# Get a file like object
# (Make the request, then create a file like object
# from the response)
file_ob = furl(url) # furl(url, params)
# Make a request
response = cors_proxy_get(url, params)
# Use like requests
print(response.text)
data = response.json()
raw = response.content
The robust_get_request()
will first try a simple request, then a proxied request: robust_get_request(url, params)
fastf1
cors proxyA monkey patch for fastf1
is provided as:
import fast f1
from jupyterlite_simple_cors_proxy.fastf1_proxy import enable_cors_proxy
enable_cors_proxy(
# domains=["api.formula1.com", "livetiming.formula1.com"],
# debug=True,
# proxy_url="https://corsproxy.io/",
)
CorsProxy
with cache facilityVia claude.ai
, the package is now further enriched.
Note that pyodide
sqlite can't write to /drive
so the cache path dir needs to be something like /tmp
or a dir created on /
.
I'm not convinced the following works in pyodide
and xeus-python
yet - requests-cache
dependency issues etc. requests-cache
has requirements attrs
, cattrs
,platformdirs
, url-normalize
.
from simple_cors_proxy.proxy import CorsProxy
# Create a cached proxy instance
proxy = CorsProxy(use_cache=True, expire_after=3600) # Cache for 1 hour
# Use furl directly from your proxy instance
file_like = proxy.furl('https://example.com/somefile.csv')
#----
import pandas as pd
from simple_cors_proxy.cacheproxy import CorsProxy
proxy = CorsProxy(use_cache=True)
file_like = proxy.furl('https://example.com/data.csv')
df = pd.read_csv(file_like)
#----
from simple_cors_proxy.proxy import create_cached_proxy
proxy = create_cached_proxy(cache_name='my_cache', expire_after=86400) # Cache for 1 day
file_like = proxy.furl('https://example.com/somefile.csv')
FAQs
A simple CORS proxy utility with requests-like response
We found that jupyterlite-simple-cors-proxy demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.