jupyterlite-simple-cors-proxy 0.1.5__tar.gz → 0.1.6__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.5
3
+ Version: 0.1.6
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
@@ -0,0 +1,5 @@
1
+ # File: jupyterlite_simple_cors_proxy/__init__.py
2
+ from .proxy import cors_proxy_get, robust_get_request, xurl, furl
3
+
4
+ __version__ = "0.1.6"
5
+ __all__ = ["cors_proxy_get", "robust_get_request", "xurl", "furl"]
@@ -6,8 +6,8 @@ import io
6
6
  import platform
7
7
  PLATFORM = platform.system().lower()
8
8
 
9
- def xurl(url, params=None):
10
- if PLATFORM=="emscripten":
9
+ def xurl(url, params=None, force=False):
10
+ if PLATFORM=="emscripten" or force:
11
11
  if params:
12
12
  url = f"{url}?{urlencode(params)}"
13
13
  url = f"https://corsproxy.io/{quote(url)}"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: jupyterlite-simple-cors-proxy
3
- Version: 0.1.5
3
+ Version: 0.1.6
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
@@ -3,7 +3,7 @@ from setuptools import setup, find_packages
3
3
 
4
4
  setup(
5
5
  name="jupyterlite-simple-cors-proxy",
6
- version="0.1.5",
6
+ version="0.1.6",
7
7
  packages=find_packages(),
8
8
  install_requires=[
9
9
  "requests",
@@ -1,5 +0,0 @@
1
- # File: jupyterlite_simple_cors_proxy/__init__.py
2
- from .proxy import cors_proxy, robust_get_request
3
-
4
- __version__ = "0.1.2"
5
- __all__ = ["cors_proxy_get", "robust_get_request"]