Title: Briefly describe major objects by providing __str__() functions · Issue #313 · STIXProject/python-stix · GitHub
Open Graph Title: Briefly describe major objects by providing __str__() functions · Issue #313 · STIXProject/python-stix
X Title: Briefly describe major objects by providing __str__() functions · Issue #313 · STIXProject/python-stix
Description: 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 ...
Open Graph Description: 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, ...
X Description: 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 th...
Opengraph URL: https://github.com/STIXProject/python-stix/issues/313
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Briefly describe major objects by providing __str__() functions","articleBody":"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 `\u003cstix.indicator.indicator.Indicator at 0x7f80481c0050\u003e`\r\n\r\nPerhaps the output could look something like these:\r\n\r\n Malicious FQDN Indicator: example.com\r\n Malicious IPv4 Indicator (IP Watchlist in Netherlands): 183.81.201.105\r\n\r\nAdd types and/or ids if they seem useful enough.\r\n\r\nProviding 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.","author":{"url":"https://github.com/nealmcb","@type":"Person","name":"nealmcb"},"datePublished":"2016-12-30T02:12:05.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/313/python-stix/issues/313"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:808b61e2-f2b5-74bc-d315-e710233f143d |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 95E0:3DC8AB:138D0E2:1A9B8B0:697008E2 |
| html-safe-nonce | 18702b010843c1c904f46d26e997201291683a0d8cd0d189c95991d2b6ca6dab |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NUUwOjNEQzhBQjoxMzhEMEUyOjFBOUI4QjA6Njk3MDA4RTIiLCJ2aXNpdG9yX2lkIjoiNTU1ODIyMDgzMzAwMzk1MjM0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 3e5ac15ca913bac2ce3cac5df0cf014dbeccb939fe7e35a434947d4448f54b81 |
| hovercard-subject-tag | issue:198095657 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/STIXProject/python-stix/313/issue_layout |
| twitter:image | https://opengraph.githubassets.com/bceab8293d655a4402c2b96b6bc5a18b3b66948f0070dc20a438cf8c1068c563/STIXProject/python-stix/issues/313 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/bceab8293d655a4402c2b96b6bc5a18b3b66948f0070dc20a438cf8c1068c563/STIXProject/python-stix/issues/313 |
| og:image:alt | 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, ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | nealmcb |
| hostname | github.com |
| expected-hostname | github.com |
| None | 6e3493a220046ce21668e7217b5ac322bdc4edd2736ee04362e5462968204bd5 |
| turbo-cache-control | no-preview |
| go-import | github.com/STIXProject/python-stix git https://github.com/STIXProject/python-stix.git |
| octolytics-dimension-user_id | 2774079 |
| octolytics-dimension-user_login | STIXProject |
| octolytics-dimension-repository_id | 8163746 |
| octolytics-dimension-repository_nwo | STIXProject/python-stix |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 8163746 |
| octolytics-dimension-repository_network_root_nwo | STIXProject/python-stix |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 9f627dfc82200bff3d2b49e4fb4b0a99594a9a9a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width