jupyterlite-simple-cors-proxy 0.1.10__tar.gz → 0.1.11__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {jupyterlite_simple_cors_proxy-0.1.10 → jupyterlite_simple_cors_proxy-0.1.11}/PKG-INFO +2 -2
- {jupyterlite_simple_cors_proxy-0.1.10 → jupyterlite_simple_cors_proxy-0.1.11}/README.md +1 -1
- {jupyterlite_simple_cors_proxy-0.1.10 → jupyterlite_simple_cors_proxy-0.1.11}/jupyterlite_simple_cors_proxy/__init__.py +1 -1
- {jupyterlite_simple_cors_proxy-0.1.10 → jupyterlite_simple_cors_proxy-0.1.11}/jupyterlite_simple_cors_proxy/cacheproxy.py +2 -1
- {jupyterlite_simple_cors_proxy-0.1.10 → jupyterlite_simple_cors_proxy-0.1.11}/jupyterlite_simple_cors_proxy.egg-info/PKG-INFO +2 -2
- {jupyterlite_simple_cors_proxy-0.1.10 → jupyterlite_simple_cors_proxy-0.1.11}/setup.py +1 -1
- {jupyterlite_simple_cors_proxy-0.1.10 → jupyterlite_simple_cors_proxy-0.1.11}/LICENSE +0 -0
- {jupyterlite_simple_cors_proxy-0.1.10 → jupyterlite_simple_cors_proxy-0.1.11}/jupyterlite_simple_cors_proxy/fastf1_proxy.py +0 -0
- {jupyterlite_simple_cors_proxy-0.1.10 → jupyterlite_simple_cors_proxy-0.1.11}/jupyterlite_simple_cors_proxy/proxy.py +0 -0
- {jupyterlite_simple_cors_proxy-0.1.10 → jupyterlite_simple_cors_proxy-0.1.11}/jupyterlite_simple_cors_proxy.egg-info/SOURCES.txt +0 -0
- {jupyterlite_simple_cors_proxy-0.1.10 → jupyterlite_simple_cors_proxy-0.1.11}/jupyterlite_simple_cors_proxy.egg-info/dependency_links.txt +0 -0
- {jupyterlite_simple_cors_proxy-0.1.10 → jupyterlite_simple_cors_proxy-0.1.11}/jupyterlite_simple_cors_proxy.egg-info/requires.txt +0 -0
- {jupyterlite_simple_cors_proxy-0.1.10 → jupyterlite_simple_cors_proxy-0.1.11}/jupyterlite_simple_cors_proxy.egg-info/top_level.txt +0 -0
- {jupyterlite_simple_cors_proxy-0.1.10 → jupyterlite_simple_cors_proxy-0.1.11}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.2
|
2
2
|
Name: jupyterlite-simple-cors-proxy
|
3
|
-
Version: 0.1.
|
3
|
+
Version: 0.1.11
|
4
4
|
Summary: A simple CORS proxy utility with requests-like response
|
5
5
|
Home-page: https://github.com/innovationOUtside/jupyterlite-simple-cors-proxy
|
6
6
|
Author: Tony Hirst
|
@@ -87,7 +87,7 @@ Via `claude.ai`, the package is now further enriched.
|
|
87
87
|
|
88
88
|
*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 `/`.*
|
89
89
|
|
90
|
-
*I'm not convinced the following works in `pyodide` and `xeus-python` yet - `requests-cache` dependency issues etc
|
90
|
+
*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`.*
|
91
91
|
|
92
92
|
```python
|
93
93
|
from simple_cors_proxy.proxy import CorsProxy
|
@@ -63,7 +63,7 @@ Via `claude.ai`, the package is now further enriched.
|
|
63
63
|
|
64
64
|
*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 `/`.*
|
65
65
|
|
66
|
-
*I'm not convinced the following works in `pyodide` and `xeus-python` yet - `requests-cache` dependency issues etc
|
66
|
+
*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`.*
|
67
67
|
|
68
68
|
```python
|
69
69
|
from simple_cors_proxy.proxy import CorsProxy
|
@@ -1,7 +1,7 @@
|
|
1
1
|
# File: simple_cors_proxy/proxy.py
|
2
2
|
from urllib.parse import urlencode, quote
|
3
3
|
import requests
|
4
|
-
|
4
|
+
|
5
5
|
import io
|
6
6
|
import platform
|
7
7
|
from typing import Optional, Union
|
@@ -21,6 +21,7 @@ class CorsProxy:
|
|
21
21
|
(e.g., cache_name, backend, expire_after)
|
22
22
|
"""
|
23
23
|
if use_cache:
|
24
|
+
import requests_cache
|
24
25
|
# Set some sensible defaults if not provided
|
25
26
|
if 'cache_name' not in cache_kwargs:
|
26
27
|
cache_kwargs['cache_name'] = 'cors_proxy_cache'
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.2
|
2
2
|
Name: jupyterlite-simple-cors-proxy
|
3
|
-
Version: 0.1.
|
3
|
+
Version: 0.1.11
|
4
4
|
Summary: A simple CORS proxy utility with requests-like response
|
5
5
|
Home-page: https://github.com/innovationOUtside/jupyterlite-simple-cors-proxy
|
6
6
|
Author: Tony Hirst
|
@@ -87,7 +87,7 @@ Via `claude.ai`, the package is now further enriched.
|
|
87
87
|
|
88
88
|
*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 `/`.*
|
89
89
|
|
90
|
-
*I'm not convinced the following works in `pyodide` and `xeus-python` yet - `requests-cache` dependency issues etc
|
90
|
+
*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`.*
|
91
91
|
|
92
92
|
```python
|
93
93
|
from simple_cors_proxy.proxy import CorsProxy
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|