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.
@@ -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
 
@@ -10,12 +10,12 @@ pip install jupyterlite-simple-cors-proxy
10
10
  ## Usage
11
11
 
12
12
  ```python
13
- from simple_cors_proxy import cors_proxy_get, robust_get_request
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 = cors_proxy(url, params)
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 reuqst, then a proxied request: `robust_get_request(url, params)`
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/?{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
 
@@ -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.2",
6
+ version="0.1.4",
7
7
  packages=find_packages(),
8
8
  install_requires=[
9
- "requests>=2.32.0",
9
+ "requests",
10
10
  ],
11
11
  author="Tony Hirst",
12
12
  author_email="tony.hirst@gmail.com",