jupyterlite-simple-cors-proxy 0.1.2__tar.gz → 0.1.4__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.2 → jupyterlite_simple_cors_proxy-0.1.4}/PKG-INFO +15 -6
- {jupyterlite_simple_cors_proxy-0.1.2 → jupyterlite_simple_cors_proxy-0.1.4}/README.md +3 -3
- {jupyterlite_simple_cors_proxy-0.1.2 → jupyterlite_simple_cors_proxy-0.1.4}/jupyterlite_simple_cors_proxy/proxy.py +1 -1
- {jupyterlite_simple_cors_proxy-0.1.2 → jupyterlite_simple_cors_proxy-0.1.4}/jupyterlite_simple_cors_proxy.egg-info/PKG-INFO +15 -6
- jupyterlite_simple_cors_proxy-0.1.4/jupyterlite_simple_cors_proxy.egg-info/requires.txt +1 -0
- {jupyterlite_simple_cors_proxy-0.1.2 → jupyterlite_simple_cors_proxy-0.1.4}/setup.py +2 -2
- jupyterlite_simple_cors_proxy-0.1.2/jupyterlite_simple_cors_proxy.egg-info/requires.txt +0 -1
- {jupyterlite_simple_cors_proxy-0.1.2 → jupyterlite_simple_cors_proxy-0.1.4}/LICENSE +0 -0
- {jupyterlite_simple_cors_proxy-0.1.2 → jupyterlite_simple_cors_proxy-0.1.4}/jupyterlite_simple_cors_proxy/__init__.py +0 -0
- {jupyterlite_simple_cors_proxy-0.1.2 → jupyterlite_simple_cors_proxy-0.1.4}/jupyterlite_simple_cors_proxy.egg-info/SOURCES.txt +0 -0
- {jupyterlite_simple_cors_proxy-0.1.2 → jupyterlite_simple_cors_proxy-0.1.4}/jupyterlite_simple_cors_proxy.egg-info/dependency_links.txt +0 -0
- {jupyterlite_simple_cors_proxy-0.1.2 → jupyterlite_simple_cors_proxy-0.1.4}/jupyterlite_simple_cors_proxy.egg-info/top_level.txt +0 -0
- {jupyterlite_simple_cors_proxy-0.1.2 → jupyterlite_simple_cors_proxy-0.1.4}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
|
|
1
|
-
Metadata-Version: 2.
|
1
|
+
Metadata-Version: 2.2
|
2
2
|
Name: jupyterlite-simple-cors-proxy
|
3
|
-
Version: 0.1.
|
3
|
+
Version: 0.1.4
|
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
|
@@ -11,7 +11,16 @@ Classifier: Operating System :: OS Independent
|
|
11
11
|
Requires-Python: >=3.6
|
12
12
|
Description-Content-Type: text/markdown
|
13
13
|
License-File: LICENSE
|
14
|
-
Requires-Dist: requests
|
14
|
+
Requires-Dist: requests
|
15
|
+
Dynamic: author
|
16
|
+
Dynamic: author-email
|
17
|
+
Dynamic: classifier
|
18
|
+
Dynamic: description
|
19
|
+
Dynamic: description-content-type
|
20
|
+
Dynamic: home-page
|
21
|
+
Dynamic: requires-dist
|
22
|
+
Dynamic: requires-python
|
23
|
+
Dynamic: summary
|
15
24
|
|
16
25
|
# jupyterlite-simple-cors-proxy
|
17
26
|
Simple CORS proxy for making http requests from JupyterLite
|
@@ -25,12 +34,12 @@ pip install jupyterlite-simple-cors-proxy
|
|
25
34
|
## Usage
|
26
35
|
|
27
36
|
```python
|
28
|
-
from
|
37
|
+
from jupyterlite_simple_cors_proxy.proxy import cors_proxy_get, robust_get_request
|
29
38
|
|
30
39
|
# Make a request
|
31
40
|
url = "https://api.example.com/data"
|
32
41
|
params = {"key": "value"}
|
33
|
-
response =
|
42
|
+
response = cors_proxy_get(url, params)
|
34
43
|
|
35
44
|
# Use like requests
|
36
45
|
print(response.text)
|
@@ -38,7 +47,7 @@ data = response.json()
|
|
38
47
|
raw = response.content
|
39
48
|
```
|
40
49
|
|
41
|
-
The `robust_get_request()` will first try a simple
|
50
|
+
The `robust_get_request()` will first try a simple request, then a proxied request: `robust_get_request(url, params)`
|
42
51
|
|
43
52
|
## Features
|
44
53
|
|
@@ -10,12 +10,12 @@ pip install jupyterlite-simple-cors-proxy
|
|
10
10
|
## Usage
|
11
11
|
|
12
12
|
```python
|
13
|
-
from
|
13
|
+
from jupyterlite_simple_cors_proxy.proxy import cors_proxy_get, robust_get_request
|
14
14
|
|
15
15
|
# Make a request
|
16
16
|
url = "https://api.example.com/data"
|
17
17
|
params = {"key": "value"}
|
18
|
-
response =
|
18
|
+
response = cors_proxy_get(url, params)
|
19
19
|
|
20
20
|
# Use like requests
|
21
21
|
print(response.text)
|
@@ -23,7 +23,7 @@ data = response.json()
|
|
23
23
|
raw = response.content
|
24
24
|
```
|
25
25
|
|
26
|
-
The `robust_get_request()` will first try a simple
|
26
|
+
The `robust_get_request()` will first try a simple request, then a proxied request: `robust_get_request(url, params)`
|
27
27
|
|
28
28
|
## Features
|
29
29
|
|
@@ -19,7 +19,7 @@ def cors_proxy_get(url, params=None):
|
|
19
19
|
else:
|
20
20
|
full_url = url
|
21
21
|
|
22
|
-
proxy_url = f"https://corsproxy.io
|
22
|
+
proxy_url = f"https://corsproxy.io/{quote(full_url)}"
|
23
23
|
|
24
24
|
# Do a simple requests get and
|
25
25
|
# just pass through the entire response object
|
@@ -1,6 +1,6 @@
|
|
1
|
-
Metadata-Version: 2.
|
1
|
+
Metadata-Version: 2.2
|
2
2
|
Name: jupyterlite-simple-cors-proxy
|
3
|
-
Version: 0.1.
|
3
|
+
Version: 0.1.4
|
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
|
@@ -11,7 +11,16 @@ Classifier: Operating System :: OS Independent
|
|
11
11
|
Requires-Python: >=3.6
|
12
12
|
Description-Content-Type: text/markdown
|
13
13
|
License-File: LICENSE
|
14
|
-
Requires-Dist: requests
|
14
|
+
Requires-Dist: requests
|
15
|
+
Dynamic: author
|
16
|
+
Dynamic: author-email
|
17
|
+
Dynamic: classifier
|
18
|
+
Dynamic: description
|
19
|
+
Dynamic: description-content-type
|
20
|
+
Dynamic: home-page
|
21
|
+
Dynamic: requires-dist
|
22
|
+
Dynamic: requires-python
|
23
|
+
Dynamic: summary
|
15
24
|
|
16
25
|
# jupyterlite-simple-cors-proxy
|
17
26
|
Simple CORS proxy for making http requests from JupyterLite
|
@@ -25,12 +34,12 @@ pip install jupyterlite-simple-cors-proxy
|
|
25
34
|
## Usage
|
26
35
|
|
27
36
|
```python
|
28
|
-
from
|
37
|
+
from jupyterlite_simple_cors_proxy.proxy import cors_proxy_get, robust_get_request
|
29
38
|
|
30
39
|
# Make a request
|
31
40
|
url = "https://api.example.com/data"
|
32
41
|
params = {"key": "value"}
|
33
|
-
response =
|
42
|
+
response = cors_proxy_get(url, params)
|
34
43
|
|
35
44
|
# Use like requests
|
36
45
|
print(response.text)
|
@@ -38,7 +47,7 @@ data = response.json()
|
|
38
47
|
raw = response.content
|
39
48
|
```
|
40
49
|
|
41
|
-
The `robust_get_request()` will first try a simple
|
50
|
+
The `robust_get_request()` will first try a simple request, then a proxied request: `robust_get_request(url, params)`
|
42
51
|
|
43
52
|
## Features
|
44
53
|
|
@@ -0,0 +1 @@
|
|
1
|
+
requests
|
@@ -3,10 +3,10 @@ from setuptools import setup, find_packages
|
|
3
3
|
|
4
4
|
setup(
|
5
5
|
name="jupyterlite-simple-cors-proxy",
|
6
|
-
version="0.1.
|
6
|
+
version="0.1.4",
|
7
7
|
packages=find_packages(),
|
8
8
|
install_requires=[
|
9
|
-
"requests
|
9
|
+
"requests",
|
10
10
|
],
|
11
11
|
author="Tony Hirst",
|
12
12
|
author_email="tony.hirst@gmail.com",
|
@@ -1 +0,0 @@
|
|
1
|
-
requests>=2.32.0
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|