jupyterlite-simple-cors-proxy 0.1.3__py3-none-any.whl → 0.1.4__py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- {jupyterlite_simple_cors_proxy-0.1.3.dist-info → jupyterlite_simple_cors_proxy-0.1.4.dist-info}/METADATA +5 -5
- jupyterlite_simple_cors_proxy-0.1.4.dist-info/RECORD +7 -0
- jupyterlite_simple_cors_proxy-0.1.3.dist-info/RECORD +0 -7
- {jupyterlite_simple_cors_proxy-0.1.3.dist-info → jupyterlite_simple_cors_proxy-0.1.4.dist-info}/LICENSE +0 -0
- {jupyterlite_simple_cors_proxy-0.1.3.dist-info → jupyterlite_simple_cors_proxy-0.1.4.dist-info}/WHEEL +0 -0
- {jupyterlite_simple_cors_proxy-0.1.3.dist-info → jupyterlite_simple_cors_proxy-0.1.4.dist-info}/top_level.txt +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.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,7 @@ 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
15
|
Dynamic: author
|
16
16
|
Dynamic: author-email
|
17
17
|
Dynamic: classifier
|
@@ -34,12 +34,12 @@ pip install jupyterlite-simple-cors-proxy
|
|
34
34
|
## Usage
|
35
35
|
|
36
36
|
```python
|
37
|
-
from
|
37
|
+
from jupyterlite_simple_cors_proxy.proxy import cors_proxy_get, robust_get_request
|
38
38
|
|
39
39
|
# Make a request
|
40
40
|
url = "https://api.example.com/data"
|
41
41
|
params = {"key": "value"}
|
42
|
-
response =
|
42
|
+
response = cors_proxy_get(url, params)
|
43
43
|
|
44
44
|
# Use like requests
|
45
45
|
print(response.text)
|
@@ -47,7 +47,7 @@ data = response.json()
|
|
47
47
|
raw = response.content
|
48
48
|
```
|
49
49
|
|
50
|
-
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)`
|
51
51
|
|
52
52
|
## Features
|
53
53
|
|
@@ -0,0 +1,7 @@
|
|
1
|
+
jupyterlite_simple_cors_proxy/__init__.py,sha256=F1Y3oZFLKGV_q2B90txW9Lvxw8F9EyAEdnuk0WSeNiA,174
|
2
|
+
jupyterlite_simple_cors_proxy/proxy.py,sha256=zazo6dKSZHVHtoaETegAJ9GgdZs3TFQWZiSPikr877U,890
|
3
|
+
jupyterlite_simple_cors_proxy-0.1.4.dist-info/LICENSE,sha256=Ogw7GUmeZIxmDNiKWsu_N07svNoGnPB7lWyiXHX_rMY,1074
|
4
|
+
jupyterlite_simple_cors_proxy-0.1.4.dist-info/METADATA,sha256=fjT0E0wEFMgXxpazLqEGagbpbjm0PJd-1MjtrAVObXU,1420
|
5
|
+
jupyterlite_simple_cors_proxy-0.1.4.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
6
|
+
jupyterlite_simple_cors_proxy-0.1.4.dist-info/top_level.txt,sha256=Oh0oQrSmRnBq5u675coiKMbkb2ASg8AGF8ZiZTzUS5Q,30
|
7
|
+
jupyterlite_simple_cors_proxy-0.1.4.dist-info/RECORD,,
|
@@ -1,7 +0,0 @@
|
|
1
|
-
jupyterlite_simple_cors_proxy/__init__.py,sha256=F1Y3oZFLKGV_q2B90txW9Lvxw8F9EyAEdnuk0WSeNiA,174
|
2
|
-
jupyterlite_simple_cors_proxy/proxy.py,sha256=zazo6dKSZHVHtoaETegAJ9GgdZs3TFQWZiSPikr877U,890
|
3
|
-
jupyterlite_simple_cors_proxy-0.1.3.dist-info/LICENSE,sha256=Ogw7GUmeZIxmDNiKWsu_N07svNoGnPB7lWyiXHX_rMY,1074
|
4
|
-
jupyterlite_simple_cors_proxy-0.1.3.dist-info/METADATA,sha256=DxwUwU32bN9q_-RZre9h_CPAc7-aebYX_WsGaojPgJE,1405
|
5
|
-
jupyterlite_simple_cors_proxy-0.1.3.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
6
|
-
jupyterlite_simple_cors_proxy-0.1.3.dist-info/top_level.txt,sha256=Oh0oQrSmRnBq5u675coiKMbkb2ASg8AGF8ZiZTzUS5Q,30
|
7
|
-
jupyterlite_simple_cors_proxy-0.1.3.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|