jupyterlite-simple-cors-proxy 0.1.2__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.
@@ -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/?{quote(full_url)}"
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
1
+ Metadata-Version: 2.2
2
2
  Name: jupyterlite-simple-cors-proxy
3
- Version: 0.1.2
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>=2.32.0
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 simple_cors_proxy import cors_proxy_get, robust_get_request
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 = cors_proxy(url, params)
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 reuqst, then a proxied request: `robust_get_request(url, params)`
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,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,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (75.2.0)
2
+ Generator: setuptools (75.8.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5
 
@@ -1,7 +0,0 @@
1
- jupyterlite_simple_cors_proxy/__init__.py,sha256=F1Y3oZFLKGV_q2B90txW9Lvxw8F9EyAEdnuk0WSeNiA,174
2
- jupyterlite_simple_cors_proxy/proxy.py,sha256=KbJza7WpOq7VUrZtv1jEYSq0PTSyP9KED99k8eGxpHc,891
3
- jupyterlite_simple_cors_proxy-0.1.2.dist-info/LICENSE,sha256=Ogw7GUmeZIxmDNiKWsu_N07svNoGnPB7lWyiXHX_rMY,1074
4
- jupyterlite_simple_cors_proxy-0.1.2.dist-info/METADATA,sha256=LetMK15lky-aNJaitPPbByd4FilGFdiaXZqAxXhlpdg,1208
5
- jupyterlite_simple_cors_proxy-0.1.2.dist-info/WHEEL,sha256=OVMc5UfuAQiSplgO0_WdW7vXVGAt9Hdd6qtN4HotdyA,91
6
- jupyterlite_simple_cors_proxy-0.1.2.dist-info/top_level.txt,sha256=Oh0oQrSmRnBq5u675coiKMbkb2ASg8AGF8ZiZTzUS5Q,30
7
- jupyterlite_simple_cors_proxy-0.1.2.dist-info/RECORD,,