Skip to main content

tyfbaf

Project description

tyfbaf

Version License Downloads Code style: black

tyfbaf is a Python package designed for bringing (even) more joy when using the SAP® BusinessObjects™ RESTful Web Service SDK.

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

Contributions

tyfbaf neither claims to be complete nor perfect. If you bump into any kind of bug, please let us know by opening an issue. If you have an idea for a new feature, please also open an issue. So we could work things out and make the world a little, little, tiny bit better. 😎

Changelog

See CHANGELOG.md for more information.

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tyfbaf-0.0.6.tar.gz (5.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tyfbaf-0.0.6-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

Details for the file tyfbaf-0.0.6.tar.gz.

File metadata

  • Download URL: tyfbaf-0.0.6.tar.gz
  • Upload date:
  • Size: 5.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.27.1

File hashes

Hashes for tyfbaf-0.0.6.tar.gz
Algorithm Hash digest
SHA256 b9ef71904530a981d13dc1febdaaadd7db1adc1782c1e8de0403b67a07e6c133
MD5 37317e46a635f4c01ee9a9db5421eeae
BLAKE2b-256 66ec9b7e8f2a4d0b87a15239e324ff0721f32a1780b35a8ad44efc0afe2b74d9

See more details on using hashes here.

File details

Details for the file tyfbaf-0.0.6-py3-none-any.whl.

File metadata

  • Download URL: tyfbaf-0.0.6-py3-none-any.whl
  • Upload date:
  • Size: 5.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.27.1

File hashes

Hashes for tyfbaf-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 3c22c267ce8bf98078c41e891c2407ef4ed0af25ce80d7558ddffcd5f9dfd35b
MD5 b36b898cfb080d4c1d40f42a6470db8b
BLAKE2b-256 59f9989659f85138a051db6facad0b28356ffe3c8790353a174113a034f56d06

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page