pepr-python-client
A simple python client for reading PEPR actions, their subtasks, losses and facilities from the public client api at https://api.gateway.equinor.com/pepr
Try it out
See demo.py and demo_subtasks.py
Installing
Install package from pypi using pip install pepr_client
Reading subtasks
A PEPR action can be split into subtasks. Fetch the subtasks of an action either
directly or lazily through the Action object:
from pepr_client import Action, get_action_subtasks
# Directly from an action id.
for subtask in get_action_subtasks(80231887):
print(subtask.id, subtask.title, subtask.status, subtask.url)
# Or lazily via the Action (fetched on first access, then cached).
action = Action(80231887)
print(f"{len(action.subtasks)} subtask(s)")
A subtask exposes the same style of properties as an action (id, title,
status, description, due_date, priority, sap_code, keywords,
tag_numbers, sap_work_orders, service_now_references, attachments,
comments, url, ...). subtask.action lazily loads the parent Action.
Subtask attachments cannot be downloaded through the API — there is no subtask-attachment endpoint, and subtask attachments share the action attachment id space. Use
subtask.urlto open the subtask in PEPR instead. Callingsubtask.download_attachment(...)raisesNotImplementedError.
Generic flag catalogue
Fetch the available flag definitions without loading individual actions:
from pepr_client import GenericFlag
for flag in GenericFlag.get_generic_flags():
print(flag.id, flag.key, flag.name, flag.description)
Developing / testing
Uv is preferred for developers. Clone and install with required packages for testing and coverage:
uv sync
For testing with coverage run:
uv run pytest --cov --cov-report=html
Metadata
Release files for pepr-client 1.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 | Provenance | Actions |
|---|---|---|---|---|
| pepr_client-1.1.1.tar.gz | 14.5 kB | Without provenance | Details for pepr_client-1.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pepr_client-1.1.1-py3-none-any.whl | Python 3 | none | any | Details for pepr_client-1.1.1-py3-none-any.whl |
Total release size: 31.7 kB
Release files / pepr_client-1.1.1.tar.gz
| Download URL | pepr_client-1.1.1.tar.gz |
|---|---|
| Size | 14.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
77d68ff5f38583029aba034dd1833b532cf37aba0f3981f8ffe6b6e2db7200b9
|
|
BLAKE2b-256 checksum How to use checksums |
d6cd5055c0a1d36ccbc560b18ce58751032cbcd30cffb68c2c7b66ff42a3f3ef
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.3.3 CPython/3.13.7 Darwin/27.2.0
|
Release files / pepr_client-1.1.1-py3-none-any.whl
| Download URL | pepr_client-1.1.1-py3-none-any.whl |
|---|---|
| Size | 17.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6b8acf6373c42677dd83a325eca79cadbbfbe15ceae995033b7ede1dd1760cb0
|
|
BLAKE2b-256 checksum How to use checksums |
76a0dae3f022305121ea2fd9c7fd611ed59c5df257244706ef2fd591853212ea
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.3.3 CPython/3.13.7 Darwin/27.2.0
|
Security for pepr-client 1.1.1
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.