You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Briefly describe major objects by providing __str__() functions #313
I'm a newbie to stix, just trying to parse a stix file I ran across. It would be much easier to explore the file, the format and the API if the objects would describe themselves when I print them, rather than just getting something like <stix.indicator.indicator.Indicator at 0x7f80481c0050>
Perhaps the output could look something like these:
Providing a summary description of a whole package, e.g. via some sort of package.summary() function that summarizes the numbers of different types of objects or something like that, would also be handy.
Activity
gtback commentedon Jan 3, 2017
Thanks, @nealmcb . That's a great suggestion.
Unfortunately, we don't have a lot of time to put into this library; we are instead focusing on Python libraries for STIX 2.
I would be happy to accept a PR with these changes if you (or anyone else) has the time and interest to work on them, though.