Plugin for SAP launchapd in for python requests
Project description
requests-sap
A plugin to support SAP launchpad authentication in Python Requests.
Usage
import json
import os
import requests
from requests_sap import SAPAuth
r = requests.get(
"https://launchpad.support.sap.com/services/odata/svt/swdcuisrv/ObjectSet('0030000000103162022')",
auth=SAPAuth(username=os.environ['LP_USERNAME'], password=os.environ['LP_PASSWORD']),
headers={'Accept': 'application/json'}
)
data = json.loads(r.text)
print(data['d']['Title'] + ' is ' + data['d']['Status'])
Output:
SAP HANA Platform Edt. 2.0 SPS05 rev57 Linux x86_64 is AVAILABLE
Release
To build the project run:
make dist
To upload the project to pypi
make upload
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
requests-sap-0.0.6.tar.gz
(3.8 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file requests-sap-0.0.6.tar.gz.
File metadata
- Download URL: requests-sap-0.0.6.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
30124607c836545306f6106f82e6ab588b6368bcd2ca254715256391c16dd28a
|
|
| MD5 |
902e1c5e3d5e55ac7ab6e4bf01584701
|
|
| BLAKE2b-256 |
e2a57f7540bab2443b850715a78da32e4b9fbaace9b5be720928d22cec1fb445
|
File details
Details for the file requests_sap-0.0.6-py3-none-any.whl.
File metadata
- Download URL: requests_sap-0.0.6-py3-none-any.whl
- Upload date:
- Size: 4.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3f89a8215161e5b949f2a6935c74e80797553bd8b2d17e614cee3209783d1ea0
|
|
| MD5 |
83bef620fd4ee93971e587cb950d059f
|
|
| BLAKE2b-256 |
64ef365acd886b5da2c41dc240c0b2c5067bc5b8c09e36efa7e401f952d6200d
|