Skip to content

Commit

Permalink
feat: Add a direct accessor to the program name.
Browse files Browse the repository at this point in the history
  • Loading branch information
A. Challande committed Nov 4, 2022
1 parent 3093c57 commit 3194242
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions bindings/python/quokka/program.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,11 @@ def __hash__(self) -> int:
"""Hash of the Program (use the hash from the exported file)"""
return int(self.proto.meta.hash.hash_value, 16)

@property
def name(self) -> str:
"""Returns the underlying binary name"""
return self.proto.meta.executable_name

@property
def hash(self) -> str:
"""Returns the hash value of the binary (either sha256 or MD5)."""
Expand Down

0 comments on commit 3194242

Please sign in to comment.