Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Briefly describe major objects by providing __str__() functions #313

Open
nealmcb opened this issue Dec 30, 2016 · 1 comment
Open

Briefly describe major objects by providing __str__() functions #313

nealmcb opened this issue Dec 30, 2016 · 1 comment

Comments

@nealmcb
Copy link

nealmcb commented Dec 30, 2016

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:

Malicious FQDN Indicator: example.com
Malicious IPv4 Indicator (IP Watchlist in Netherlands): 183.81.201.105

Add types and/or ids if they seem useful enough.

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.

@gtback
Copy link
Contributor

gtback commented 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants