{"categories":[{"label":"Software Development","url":"https://skillfed.io/packages/category/software-development/6"}],"enrichment":{"capability":"Converts pydantic model definitions into TypeScript interface definitions via a CLI tool, enabling a single source of truth for type definitions across Python and JavaScript applications.","skillfed_tags":["type-generation","cross-language-sync","api-tooling"],"use_cases":["Generate TypeScript types for a backend's request/response models to keep frontend and backend type definitions synchronized.","Exclude sensitive or internal pydantic models from TypeScript output using the --exclude flag when only a subset of models should be exposed.","Integrate into a build pipeline to regenerate TypeScript definitions whenever pydantic models change, ensuring frontend types never drift from backend reality.","Convert a Python module with multiple interdependent pydantic models into a single TypeScript definitions file for import across a frontend codebase."],"what_it_does":"pydantic-to-typescript is a CLI tool that reads pydantic model definitions from a Python module and generates corresponding TypeScript interface definitions. It bridges the gap between Python and JavaScript type systems by allowing teams to maintain a single authoritative source of type definitions in Python, then automatically generate matching TypeScript interfaces for frontend consumption. The tool depends on pydantic for model introspection and json2ts for the actual TypeScript generation.\n\nThe package is designed for full-stack applications where Python backends serve APIs consumed by TypeScript/JavaScript frontends. Instead of manually keeping type definitions in sync across languages, you define your data models once in pydantic and run the tool to generate TypeScript interfaces that match exactly. The generated interfaces are marked as auto-generated to discourage manual edits, reinforcing the single-source-of-truth pattern.","worth_installing":"Yes, if you have a Python backend with pydantic models and a TypeScript frontend that needs to stay in sync. The package solves a real problem\u2014type definition drift\u2014with minimal overhead. Install friction is low and the MIT license is unrestricted. The main caveat is dormant maintenance (last release 630 days ago), so if you rely on cutting-edge pydantic features or need active support, evaluate whether the tool handles your specific model patterns before committing."},"id":"pydantic-to-typescript","links":{"html":"https://skillfed.io/packages/pydantic-to-typescript","md":"https://skillfed.io/packages/pydantic-to-typescript.md","pypi":"https://pypi.org/project/pydantic-to-typescript/"},"maintenance":{"status":"dormant"},"meta":{"latest_release":"2024-11-22","license_spdx":null,"license_treatment":"permissive","name":"pydantic-to-typescript","python_support":"supports_current","summary":"Convert pydantic models to typescript interfaces"},"popularity":{"monthly_downloads":863682,"position":4867,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"2.0.0"}
