Title: Info method to list all the attributes and values · Issue #175 · IfcOpenShell/IfcOpenShell · GitHub
Open Graph Title: Info method to list all the attributes and values · Issue #175 · IfcOpenShell/IfcOpenShell
X Title: Info method to list all the attributes and values · Issue #175 · IfcOpenShell/IfcOpenShell
Description: I have written this convenience function that aggregates all the attributes and values of an entity. I thought you might consider adding it as a method to entities. try/except is used because some attributes do not exist. def info(obj): ...
Open Graph Description: I have written this convenience function that aggregates all the attributes and values of an entity. I thought you might consider adding it as a method to entities. try/except is used because some ...
X Description: I have written this convenience function that aggregates all the attributes and values of an entity. I thought you might consider adding it as a method to entities. try/except is used because some ...
Opengraph URL: https://github.com/IfcOpenShell/IfcOpenShell/issues/175
X: @github
Domain: github.com
IPv4 address: 140.82.113.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Info method to list all the attributes and values","articleBody":"I have written this convenience function that aggregates all the attributes and values of an entity. I thought you might consider adding it as a method to entities. `try/except` is used because some attributes do not exist.\r\n\r\n```python\r\ndef info(obj):\r\n _info = {}\r\n try:\r\n _info[\"id\"] = obj.id()\r\n _info[\"type\"] = obj.is_a()\r\n except:\r\n pass\r\n for i in range(len(obj)):\r\n try:\r\n _info[obj.attribute_name(i)] = obj[i]\r\n except:\r\n pass\r\n return _info\r\n```","author":{"url":"https://github.com/aahoo","@type":"Person","name":"aahoo"},"datePublished":"2016-12-31T15:57:43Z","url":"https://github.com/IfcOpenShell/IfcOpenShell/issues/175"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| 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:b25f1ab3-f993-4a89-9b9c-14c671507bc3 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A40A:14ACA3:D56B2:11F03A:6B047FAF |
| html-safe-nonce | 663687d12f23dce7a378c52858353194b4c2f0d66b6a3dd07ad0832fce7f5303 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNDBBOjE0QUNBMzpENTZCMjoxMUYwM0E6NkIwNDdGQUYiLCJ2aXNpdG9yX2lkIjoiNjE1MDQwMzc5NDM5NTc5MDU1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 86da3fc449410a4a1c222161d61214312ecf843927d96a9ef56a53359827b25a |
| hovercard-subject-tag | issue:198237324 |
| 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/IfcOpenShell/IfcOpenShell/175/issue_layout |
| twitter:image | https://opengraph.githubassets.com/7f5762d9e395ae8add1c6f8b282497c9b4e8607592c8cd32d65a244959a8c03d/IfcOpenShell/IfcOpenShell/issues/175 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/7f5762d9e395ae8add1c6f8b282497c9b4e8607592c8cd32d65a244959a8c03d/IfcOpenShell/IfcOpenShell/issues/175 |
| og:image:alt | I have written this convenience function that aggregates all the attributes and values of an entity. I thought you might consider adding it as a method to entities. try/except is used because some ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | aahoo |
| hostname | github.com |
| expected-hostname | github.com |
| None | 0366ddfb372682a32e92a5d86155cb08fa83e5bbe79953a968789f2f7e24c511 |
| turbo-cache-control | no-preview |
| go-import | github.com/IfcOpenShell/IfcOpenShell git https://github.com/IfcOpenShell/IfcOpenShell.git |
| octolytics-dimension-user_id | 13692563 |
| octolytics-dimension-user_login | IfcOpenShell |
| octolytics-dimension-repository_id | 40473201 |
| octolytics-dimension-repository_nwo | IfcOpenShell/IfcOpenShell |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 40473201 |
| octolytics-dimension-repository_network_root_nwo | IfcOpenShell/IfcOpenShell |
| 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 | ed3f2e01f6b7672780c586c8af0e72726374d7b6 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width