jupyterlite-simple-cors-proxy 0.1.10__tar.gz → 0.1.11__tar.gz

Sign up to get free protection for your applications and to get access to all the features.
Files changed (14) hide show
  1. {jupyterlite_simple_cors_proxy-0.1.10 → jupyterlite_simple_cors_proxy-0.1.11}/PKG-INFO +2 -2
  2. {jupyterlite_simple_cors_proxy-0.1.10 → jupyterlite_simple_cors_proxy-0.1.11}/README.md +1 -1
  3. {jupyterlite_simple_cors_proxy-0.1.10 → jupyterlite_simple_cors_proxy-0.1.11}/jupyterlite_simple_cors_proxy/__init__.py +1 -1
  4. {jupyterlite_simple_cors_proxy-0.1.10 → jupyterlite_simple_cors_proxy-0.1.11}/jupyterlite_simple_cors_proxy/cacheproxy.py +2 -1
  5. {jupyterlite_simple_cors_proxy-0.1.10 → jupyterlite_simple_cors_proxy-0.1.11}/jupyterlite_simple_cors_proxy.egg-info/PKG-INFO +2 -2
  6. {jupyterlite_simple_cors_proxy-0.1.10 → jupyterlite_simple_cors_proxy-0.1.11}/setup.py +1 -1
  7. {jupyterlite_simple_cors_proxy-0.1.10 → jupyterlite_simple_cors_proxy-0.1.11}/LICENSE +0 -0
  8. {jupyterlite_simple_cors_proxy-0.1.10 → jupyterlite_simple_cors_proxy-0.1.11}/jupyterlite_simple_cors_proxy/fastf1_proxy.py +0 -0
  9. {jupyterlite_simple_cors_proxy-0.1.10 → jupyterlite_simple_cors_proxy-0.1.11}/jupyterlite_simple_cors_proxy/proxy.py +0 -0
  10. {jupyterlite_simple_cors_proxy-0.1.10 → jupyterlite_simple_cors_proxy-0.1.11}/jupyterlite_simple_cors_proxy.egg-info/SOURCES.txt +0 -0
  11. {jupyterlite_simple_cors_proxy-0.1.10 → jupyterlite_simple_cors_proxy-0.1.11}/jupyterlite_simple_cors_proxy.egg-info/dependency_links.txt +0 -0
  12. {jupyterlite_simple_cors_proxy-0.1.10 → jupyterlite_simple_cors_proxy-0.1.11}/jupyterlite_simple_cors_proxy.egg-info/requires.txt +0 -0
  13. {jupyterlite_simple_cors_proxy-0.1.10 → jupyterlite_simple_cors_proxy-0.1.11}/jupyterlite_simple_cors_proxy.egg-info/top_level.txt +0 -0
  14. {jupyterlite_simple_cors_proxy-0.1.10 → jupyterlite_simple_cors_proxy-0.1.11}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: jupyterlite-simple-cors-proxy
3
- Version: 0.1.10
3
+ Version: 0.1.11
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
@@ -87,7 +87,7 @@ Via `claude.ai`, the package is now further enriched.
87
87
 
88
88
  *Note that `pyodide` sqlite can't write to `/drive` so the cache path dir needs to be something like `/tmp` or a dir created on `/`.*
89
89
 
90
- *I'm not convinced the following works in `pyodide` and `xeus-python` yet - `requests-cache` dependency issues etc.*
90
+ *I'm not convinced the following works in `pyodide` and `xeus-python` yet - `requests-cache` dependency issues etc. `requests-cache` has requirements `attrs`, `cattrs`,`platformdirs`, `url-normalize`.*
91
91
 
92
92
  ```python
93
93
  from simple_cors_proxy.proxy import CorsProxy
@@ -63,7 +63,7 @@ Via `claude.ai`, the package is now further enriched.
63
63
 
64
64
  *Note that `pyodide` sqlite can't write to `/drive` so the cache path dir needs to be something like `/tmp` or a dir created on `/`.*
65
65
 
66
- *I'm not convinced the following works in `pyodide` and `xeus-python` yet - `requests-cache` dependency issues etc.*
66
+ *I'm not convinced the following works in `pyodide` and `xeus-python` yet - `requests-cache` dependency issues etc. `requests-cache` has requirements `attrs`, `cattrs`,`platformdirs`, `url-normalize`.*
67
67
 
68
68
  ```python
69
69
  from simple_cors_proxy.proxy import CorsProxy
@@ -3,5 +3,5 @@ from .cacheproxy import cors_proxy_get, robust_get_request, xurl, furl
3
3
 
4
4
  # from .fastf1_proxy import enable_cors_proxy as fastf1_cors_proxy
5
5
 
6
- __version__ = "0.1.10"
6
+ __version__ = "0.1.11"
7
7
  __all__ = ["cors_proxy_get", "robust_get_request", "xurl", "furl"]
@@ -1,7 +1,7 @@
1
1
  # File: simple_cors_proxy/proxy.py
2
2
  from urllib.parse import urlencode, quote
3
3
  import requests
4
- import requests_cache
4
+
5
5
  import io
6
6
  import platform
7
7
  from typing import Optional, Union
@@ -21,6 +21,7 @@ class CorsProxy:
21
21
  (e.g., cache_name, backend, expire_after)
22
22
  """
23
23
  if use_cache:
24
+ import requests_cache
24
25
  # Set some sensible defaults if not provided
25
26
  if 'cache_name' not in cache_kwargs:
26
27
  cache_kwargs['cache_name'] = 'cors_proxy_cache'
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: jupyterlite-simple-cors-proxy
3
- Version: 0.1.10
3
+ Version: 0.1.11
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
@@ -87,7 +87,7 @@ Via `claude.ai`, the package is now further enriched.
87
87
 
88
88
  *Note that `pyodide` sqlite can't write to `/drive` so the cache path dir needs to be something like `/tmp` or a dir created on `/`.*
89
89
 
90
- *I'm not convinced the following works in `pyodide` and `xeus-python` yet - `requests-cache` dependency issues etc.*
90
+ *I'm not convinced the following works in `pyodide` and `xeus-python` yet - `requests-cache` dependency issues etc. `requests-cache` has requirements `attrs`, `cattrs`,`platformdirs`, `url-normalize`.*
91
91
 
92
92
  ```python
93
93
  from simple_cors_proxy.proxy import CorsProxy
@@ -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.10",
6
+ version="0.1.11",
7
7
  packages=find_packages(),
8
8
  install_requires=[
9
9
  "requests",