Title: Add Record and TableInfo typed return models by tpellissier-msft · Pull Request #115 · microsoft/PowerPlatform-DataverseClient-Python · GitHub
Open Graph Title: Add Record and TableInfo typed return models by tpellissier-msft · Pull Request #115 · microsoft/PowerPlatform-DataverseClient-Python
X Title: Add Record and TableInfo typed return models by tpellissier-msft · Pull Request #115 · microsoft/PowerPlatform-DataverseClient-Python
Description: Summary Introduces typed dataclass return models for record and table metadata operations, replacing raw Dict[str, Any] returns while maintaining full backward compatibility via dict-like access. New models Record — wraps OData record responses with id, table, data, etag fields. result["key"] still works via delegation to self.data. Factory from_api_response() strips @odata.* keys and extracts etag. TableInfo — wraps table metadata with legacy key mapping (result["table_schema_name"] maps to result.schema_name). Factories from_dict() and from_api_response(). ColumnInfo — typed column metadata with from_api_response() for PascalCase API responses. Changed return types Method Before After records.get(table, id) Dict[str, Any] Record records.get(table, filter=...) Iterable[List[Dict]] Iterable[List[Record]] query.sql(sql) List[Dict] List[Record] tables.create(...) Dict[str, Any] TableInfo tables.get(...) Optional[Dict] Optional[TableInfo] Backward compatibility result["key"] works on all models "key" in result works for k in result iterates keys result.get("key", default) works Legacy keys on TableInfo (table_schema_name) map to new attributes (schema_name) Test plan 188 unit tests passing (32 new model tests + updated operation/deprecation tests) Black formatting clean 🤖 Generated with Claude Code
Open Graph Description: Summary Introduces typed dataclass return models for record and table metadata operations, replacing raw Dict[str, Any] returns while maintaining full backward compatibility via dict-like access. N...
X Description: Summary Introduces typed dataclass return models for record and table metadata operations, replacing raw Dict[str, Any] returns while maintaining full backward compatibility via dict-like access. N...
Opengraph URL: https://github.com/microsoft/PowerPlatform-DataverseClient-Python/pull/115
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:79fd0adc-17e3-eb1c-8453-54bf8f987a80 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 9FB4:22A0B:4FEDF:6B338:6A4D2876 |
| html-safe-nonce | ca95faca96475a8ed9066cc63cbc2ea4b65be422ac35756f45bc7034f9197d58 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RkI0OjIyQTBCOjRGRURGOjZCMzM4OjZBNEQyODc2IiwidmlzaXRvcl9pZCI6IjY5NDQ5ODcyOTIyMTg3NjMzODMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 0c8f86a8f4ee0b3d08afd95a9aa0933d468304215466eaa57392eaaff7c9079f |
| hovercard-subject-tag | pull_request:3317708850 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,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/microsoft/PowerPlatform-DataverseClient-Python/pull/115/files |
| twitter:image | https://avatars.githubusercontent.com/u/227695833?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/227695833?s=400&v=4 |
| og:image:alt | Summary Introduces typed dataclass return models for record and table metadata operations, replacing raw Dict[str, Any] returns while maintaining full backward compatibility via dict-like access. N... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 92571a8944142227b7e19cd10918b1ddd06e5066c1ad5bc7e4769cf6140a87e6 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/microsoft/PowerPlatform-DataverseClient-Python git https://github.com/microsoft/PowerPlatform-DataverseClient-Python.git |
| octolytics-dimension-user_id | 6154722 |
| octolytics-dimension-user_login | microsoft |
| octolytics-dimension-repository_id | 1042273116 |
| octolytics-dimension-repository_nwo | microsoft/PowerPlatform-DataverseClient-Python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1042273116 |
| octolytics-dimension-repository_network_root_nwo | microsoft/PowerPlatform-DataverseClient-Python |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 93f17a978ee60bc4668e1d7b90e6bd2d622261fd |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width