Skip to content

Commit 1ad6918

Browse files
committed
python: add f58plain property to JobID class
Problem: A Python JobID object can't return the f58plain encoding of a jobid since there's no corresponding class property. Add an `f58plain` property to the JobID class which returns the f58plain encoding of the jobid.
1 parent e964195 commit 1ad6918

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/bindings/python/flux/job/JobID.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,11 @@ def f58(self):
8080
"""Return RFC19 F58 representation of a JobID"""
8181
return self.encode("f58")
8282

83+
@property
84+
def f58plain(self):
85+
"""Return RFC19 F58 representation of a JobID with ASCII prefix"""
86+
return self.encode("f58plain")
87+
8388
@property
8489
def hex(self):
8590
"""Return 0x-prefixed hexadecimal representation of a JobID"""

0 commit comments

Comments
 (0)