Pydantic Company

We've started a company based on the principles that I believe have led to Pydantic's success.

Learning more from the Company Announcement.

和devtools一起使用

Note

Admission: I (the primary developer of pydantic) also develop python-devtools.

python-devtools (pip install devtools) provides a number of tools which are useful during Python development, including debug() an alternative to print() which formats output in a way which should be easier to read than print as well as giving information about which file/line the print statement is on and what value was printed.

pydantic integrates with devtools by implementing the __pretty__ method on most public classes.

In particular debug() is useful when inspecting models:

Will output in your terminal: