tyfbaf
Project description
tyfbaf
tyfbaf is a Python package designed for making using the SAP® BusinessObjects™ RESTful Web Service SDK easier.
Install
You can install via PIP: pip install tyfbaf
Basic Usage
First you have to call the setup function to tell tyfbaf the name of your server (and optionally your port, if it's differing from 6405):
>>> import tyfbaf
>>> tyfbaf.setup("my-server-name", port=1234)
Then tyfbaf gives you a get and a post function in the http module. Those functions are specialized for the SAP® BusinessObjects™ RESTful Web Service SDK. So you just have to call the desired endpoint, you can pass your token as a parameter, you don't have to set up headers, etc.
>>> import tyfbaf.http
>>> tyfbaf.http.get("/logon/long)
{'password': '', 'clientType': '', 'auth': 'secEnterprise', 'userName': ''}
For common cases, tyfbaf gives you predefined functions, too. So for example you can request a token like this.
>>> import tyfbaf.token
>>> tyfbaf.token.request("my-username", "my-password123")
my-server-name:6400@{3&2=5595,U3&p=40674.9596541551,Y7&4F=12,U3&63=secEnterprise,0P&66=60,03&68=secEnterprise:my-username,0P&qe=100,U3&vz=SFY6agrLPxpfQBK1ZKYCahEZKCbfsQm7VgWZFiH.RhM,UP
License
Distributed under the MIT License. See LICENSE for more information.
Copyright
SAP® BusinessObjects™ is the trademark or registered trademark of SAP SE or its affiliates in Germany and in several other countries.
tyfbaf is not affiliated, associated, authorized, endorsed by or in any way officially connected to SAP SE or an SAP affiliate company.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
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 tyfbaf-0.0.4.tar.gz.
File metadata
- Download URL: tyfbaf-0.0.4.tar.gz
- Upload date:
- Size: 4.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.27.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7e0255b75e845e50efdf2a5153898ee35eb92508f15a35abb15fa4efb26e549b
|
|
| MD5 |
b8b8312014f18a2513aeb637097a31e5
|
|
| BLAKE2b-256 |
af76c064e488ca9ee70c7e1f09119358a755f0020bef1c0165de96f2ee31eaaf
|
File details
Details for the file tyfbaf-0.0.4-py3-none-any.whl.
File metadata
- Download URL: tyfbaf-0.0.4-py3-none-any.whl
- Upload date:
- Size: 3.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.27.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cfd0463ba0d5a42aa5d9bb43d0089f1cb72e4374944b441e650802199372e4a7
|
|
| MD5 |
c37bc362188b0055bd326f878d0bcc59
|
|
| BLAKE2b-256 |
5414ca99e6e5ef93693c0fee57bf16dee9d662545dcefa954b8fc71e59a23ace
|