Skip to main content

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

Metadata

Release files for requests-sap 0.0.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for requests-sap 0.0.6
File Size Uploaded Provenance Actions
requests-sap-0.0.6.tar.gz 3.8 kB Without provenance Details for requests-sap-0.0.6.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for requests-sap 0.0.6
File Interpreter ABI Platform Actions
requests_sap-0.0.6-py3-none-any.whl Python 3 none any Details for requests_sap-0.0.6-py3-none-any.whl

Total release size: 8.6 kB

Release files / requests-sap-0.0.6.tar.gz

Download URL requests-sap-0.0.6.tar.gz
Size 3.8 kB
Tags Source
SHA-256 checksum
How to use checksums
30124607c836545306f6106f82e6ab588b6368bcd2ca254715256391c16dd28a
BLAKE2b-256 checksum
How to use checksums
e2a57f7540bab2443b850715a78da32e4b9fbaace9b5be720928d22cec1fb445
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.7

Release files / requests_sap-0.0.6-py3-none-any.whl

Download URL requests_sap-0.0.6-py3-none-any.whl
Size 4.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3f89a8215161e5b949f2a6935c74e80797553bd8b2d17e614cee3209783d1ea0
BLAKE2b-256 checksum
How to use checksums
64ef365acd886b5da2c41dc240c0b2c5067bc5b8c09e36efa7e401f952d6200d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.7

Security for requests-sap 0.0.6

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page