Skip to content

[Question] Easy way to reverse-lookup constants #8

Description

@SHSauler

Hi, after querying TIE and receiving an answer, how do I translate the numeric values into useful strings to export to other tools?

In my current test, I'm extracting the constants from their classes and reversing them, which is not ideal.

fileprovider_ids = {}
for key, value in FileProvider.__dict__.items():
    if type(value) == int:
        fileprovider_ids[value] = key

Is there a function I'm overlooking?
Thanks a bunch!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions