jupyterlite-simple-cors-proxy 0.1.3__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
1
  Metadata-Version: 2.2
2
2
  Name: jupyterlite-simple-cors-proxy
3
- Version: 0.1.3
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>=2.32.0
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 simple_cors_proxy import cors_proxy_get, robust_get_request
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 = cors_proxy(url, params)
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 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)`
51
51
 
52
52
  ## Features
53
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
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: jupyterlite-simple-cors-proxy
3
- Version: 0.1.3
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>=2.32.0
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 simple_cors_proxy import cors_proxy_get, robust_get_request
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 = cors_proxy(url, params)
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 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)`
51
51
 
52
52
  ## Features
53
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.3",
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",