{"library":"pydantic-to-typescript","type":"library","category":null,"description":"A simple CLI tool for converting Pydantic models into TypeScript interfaces. It supports all versions of Pydantic, with polyfills for older versions to ensure that the resulting TypeScript definitions are stable and accurate. Useful for any scenario in which Python and JavaScript applications are interacting, since it allows you to have a single source of truth for type definitions. The current version is 2.0.0, and it has an active release cadence, with recent updates supporting Pydantic V2.","language":"python","status":"active","version":"2.0.0","tags":["pydantic","typescript","code generation","fastapi","cli","type generation"],"install":[{"cmd":"pip install pydantic-to-typescript","imports":["from pydantic2ts import generate_typescript_defs"]},{"cmd":"npm install -g json-schema-to-typescript # or yarn global add json-schema-to-typescript","imports":[]}],"homepage":null,"github":"https://github.com/phillipdupuis/pydantic-to-typescript","docs":null,"changelog":null,"pypi":"https://pypi.org/project/pydantic-to-typescript/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"3.10–3.9","success_rate":100,"avg_install_s":3.2,"avg_import_s":0.53,"wheel_type":"wheel"},"url":"https://checklist.day/v1/registry/pydantic-to-typescript/compatibility"},"provenance":{"verified_status":"passing","verified_at":"Sun Jun 28","last_verified":"Sun Jun 28","next_check":"Tue Jul 28","install_tag":null}}