smart-on-fhir / client-py

Python SMART on FHIR client
http://docs.smarthealthit.org
Other
574 stars 209 forks source link

Question - Any thoughts on using pydantic for models? #143

Open virajkanwade opened 11 months ago

virajkanwade commented 11 months ago

https://docs.pydantic.dev/latest/why/

mikix commented 1 month ago

Can you expand on your thinking here? Are you thinking about performance, correctness, or something else?

Or put another way: what's the problem that you're experiencing now, that pydantic would help solve?

virajkanwade commented 1 month ago

Hi @mikix I was thinking along the lines of performance. Pydantic 2 core is written in rust. So the validations are very fast compared to something written purely in Python.