![Create React App Officially Deprecated Amid React 19 Compatibility Issues](https://cdn.sanity.io/images/cgdhsj6q/production/04fa08cf844d798abc0e1a6391c129363cc7e2ab-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
a simple HTTP library to port forward requests on SSH tunnels to remove server
.. image:: https://github.com/featureoverload/sshtunnel-requests/actions/workflows/ci.yml/badge.svg :target: https://github.com/featureoverload/sshtunnel-requests/actions?query=workflow%3Aci
.. image:: https://img.shields.io/pypi/v/sshtunnel-requests.svg :target: https://pypi.org/project/sshtunnel-requests
.. image:: https://img.shields.io/github/license/featureoverload/sshtunnel-requests.svg :target: https://github.com/featureoverload/sshtunnel-requests/blob/main/LICENSE
.. image:: https://readthedocs.org/projects/sshtunnel-requests/badge/?version=latest :target: https://sshtunnel-requests.readthedocs.io/en/latest/?version=latest :alt: Documentation Status
.. code:: shell
$ pip install sshtunnel-requests
.. code:: python
import sshtunnel_requests
requests = sshtunnel_requests.from_url( 'ssh://username@host:port', '//private_key')
resp = requests.get('http://httpbin.org/ip') print(resp.status_code)
print(resp.json())
reused created tunnel to request more then once:
.. code:: python
import sshtunnel_requests
requests = sshtunnel_requests.from_url( 'ssh://username@host:port', '//private_key')
urls = [ 'http://httpbin.org/headers', 'http://httpbin.org/ip', 'http://httpbin.org/user-agent', 'http://httpbin.org/uuid', ] for url in urls: resp = requests.get(url) print(resp.json())
thread example:
.. code:: python
import sshtunnel_requests
requests = sshtunnel_requests.from_url( "ssh://@[:]", "//" )
urls = [ 'http://httpbin.org/headers', 'http://httpbin.org/ip', 'http://httpbin.org/user-agent', 'http://httpbin.org/uuid', ]
from concurrent.futures import ThreadPoolExecutor from concurrent.futures import as_completed
results = [] with ThreadPoolExecutor(max_workers=3) as pool: futures = [] for url in urls: f = pool.submit( lambda _req, _url: _req.get(_url), requests, url ) futures.append(f) done_iter = as_completed(futures) for future in done_iter: response = future.result() results.append(response.json())
from pprint import pp for result in results: pp(result)
use session:
.. code:: python
import sshtunnel_requests
session = sshtunnel_requests.Session.from_url( "ssh://@[:]", "//" )
assert session.cookies.values() == list() resp = session.get( 'http://httpbin.org/cookies/set/sessioncookie/123456789' ) assert resp.json() == {'cookies': {'sessioncookie': '123456789'}} assert session.cookies.values() == ['123456789'] resp = session.get('http://httpbin.org/ip') assert 'Cookie' in resp.request.headers assert resp.request.headers['Cookie'] == 'sessioncookie=123456789' print(resp.json())
sshtunnel
and requests
to request HTTP server in internal networking... code:: shell
$ cd e2e_tests && docker-compose up -d; cd ..
$
$ which python
-m pip install -U pip
$ pip install .
$ pip install -r requirements_test.txt
$
$ # cd e2e_tests && docker-compose logs ssh; cd ..
$ # cd e2e_tests && docker-compose exec ssh cat /config/logs/openssh/current; cd ..
$ chmod 600 ./e2e_tests/ssh-server-config/ssh_host_rsa_key
$ # ssh -o "StrictHostKeyChecking=no" linuxserver@127.0.0.1 -p 2223 -i ./e2e_tests/ssh-server-config/ssh_host_rsa_key -v "uname -a"
$ pytest e2e_tests
FAQs
a simple HTTP library to port forward requests on SSH tunnels to remove server
We found that sshtunnel-requests demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.