sapcloudconnectorpythonsocket
Python Socket to connect to the SAP Cloud Connector via Connectivity Service
The SAP BTP Connectivity Proxy allows to connect to on-prem systems. It can act as a SOCKS5 Proxy to establish TCP connections. Due to its custom authentication scheme one can not use standard SOCKS5 client libaries. For details on how to authenticate against the Connectivity Proxy see the official Documentation. https://help.sap.com/docs/connectivity/sap-btp-connectivity-cf/using-tcp-protocol-for-cloud-applications
##Sample Usage:
from sapcloudconnectorpythonsocket import CloudConnectorSocket
cc_socket = CloudConnectorSocket()
cc_socket.connect(
dest_host="virtualhost",
dest_port=3333,
proxy_host="connectivity-proxy",
proxy_port=20003,
token="<token>",
location_id="CLOUD_CONNECTOR_LOCATION_ID"
)
Opens a socket in python using the SAP Cloud Connector as proxy. The standard socket object from python can be used in a various applications. Often times useful in connectig to TCP based protocols using python packages. The location_id is optional. The destination host and port are the virtualhost and virtualport configured in the Cloud Connector configuration. The proxy_host and the proxy_port are the host and port of the BTP Cloud Foundry Connectivity Proxy. The token is the authentication token to the Connectivity Proxy. They can be obtained from the Credentials of an BTP Connectivity Service instance.
To open a TCP based connection the proxy_port needs to be the port to the socks5 proxy. This is usually 20004 in the connectivity service.
Metadata
Release files for sapcloudconnectorpythonsocket 0.1.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| sapcloudconnectorpythonsocket-0.1.4-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for sapcloudconnectorpythonsocket-0.1.4-py2.py3-none-any.whl |
Release files / sapcloudconnectorpythonsocket-0.1.4-py2.py3-none-any.whl
| Download URL | sapcloudconnectorpythonsocket-0.1.4-py2.py3-none-any.whl |
|---|---|
| Size | 7.3 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
4d49634161b939980a382565e234cc4f28994d8c00e0e992c706341eb89d2634
|
|
BLAKE2b-256 checksum How to use checksums |
aa93edf59f1f0c1f4616f9e571087205917429ef065cdcb11d8ce4b9d5619d66
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.6
|
Security for sapcloudconnectorpythonsocket 0.1.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.