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="¶m1=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.
Release files for workday_tools 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| workday_tools-0.1.1.tar.gz | 5.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| workday_tools-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 10.5 kB
Release files / workday_tools-0.1.1.tar.gz
| Download URL | workday_tools-0.1.1.tar.gz |
|---|---|
| Size | 5.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c8b28b107855571a6a347ffb60f8459205933f74b9fb96024cab1b9901a5d086
|
|
BLAKE2b-256 checksum How to use checksums |
66458004a0d1df56be7306b048e2a84445fa15b64ef24a852e998f45075b6c2b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.32.5
|
Release files / workday_tools-0.1.1-py3-none-any.whl
| Download URL | workday_tools-0.1.1-py3-none-any.whl |
|---|---|
| Size | 5.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6623297c040006c6ed282e8b584c2b5b0bc65d58ce7277707a25b60a4f89ce9c
|
|
BLAKE2b-256 checksum How to use checksums |
4b9b11ba3e097236e488565cfeec743a23015d33f597e002c9c5a885059ec989
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.32.5
|