Skip to main content

Python tools for accessing Workday RaaS endpoints.

Project description

workday_tools_nosrednakram

Overview

workday_tools_nosrednakram is a Python package for accessing Workday RaaS (Report-as-a-Service) endpoints. It provides:

  • RaaSRest.py: A class for authenticated RaaS REST API calls.
  • rest.py: A helper function for making RaaS calls with simplified parameters.

Installation

Install via pip:

pip install workday_tools_nosrednakram

Configuration

Authentication and Tenant Information

Create a workday.yaml file with your Workday credentials and tenant details. Example (obfuscated values):

account: my_user_123
password: s3cr3tP@ssw0rd
tenant: mytenant
prod_url: https://wd5.myworkday.com
devel_url: https://wd5-impl.myworkday.com
environment: PROD

Call-Specific Configuration

Create a config.yaml file to specify ore or more configurations. In this example, we specify a report to call and its parameters:

raas_config: workday.yaml
raas_report: "CR_IHD001_Course_Search"
raas_format: csv
raas_extra_params: '&Last_Days=1&Academic_Level%21WID=f0acdfc60ce81008f822d325e5900001'

We could have multiple configurations in this file. One for production and one for development. Reports for different owners, etc. The reason for this break out is the credentials in workday.yaml are sensitive and should be protected. The config.yaml file can be checked into source control with the sensitive information in workday.yaml protected. Additionally, it allows for multiple configurations to be stored in one place.

Usage

Using RaaSRest Directly

from workday_tools_nosrednakram.RaaSRest import RaaSRest

raas = RaaSRest(config_file="workday.yaml")
response = raas.report(report="My_Report", format="json")
print(response.text)

Using the Helper Function (rest.py)

from workday_tools_nosrednakram.rest import rest_call

result = rest_call(
    report="My_Report",
    extra_params="&param1=value1",
    report_format="json",
    raas_config="workday.yaml"
)
print(result)

Notes

  • Ensure your YAML config files are correctly formatted and contain all required keys.
  • File paths can include spaces; no special escaping is needed for YAML loading.
  • Logging is used for error reporting; configure logging as needed for your environment.

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

workday_tools-0.1.1.tar.gz (5.5 kB view details)

Uploaded Source

Built Distribution

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

workday_tools-0.1.1-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

Details for the file workday_tools-0.1.1.tar.gz.

File metadata

  • Download URL: workday_tools-0.1.1.tar.gz
  • Upload date:
  • Size: 5.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.32.5

File hashes

Hashes for workday_tools-0.1.1.tar.gz
Algorithm Hash digest
SHA256 c8b28b107855571a6a347ffb60f8459205933f74b9fb96024cab1b9901a5d086
MD5 cd323745e1d9892d70a01459341f651b
BLAKE2b-256 66458004a0d1df56be7306b048e2a84445fa15b64ef24a852e998f45075b6c2b

See more details on using hashes here.

File details

Details for the file workday_tools-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: workday_tools-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 5.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.32.5

File hashes

Hashes for workday_tools-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6623297c040006c6ed282e8b584c2b5b0bc65d58ce7277707a25b60a4f89ce9c
MD5 c9028c63c24d80e84997f059d9b947a1
BLAKE2b-256 4b9b11ba3e097236e488565cfeec743a23015d33f597e002c9c5a885059ec989

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