Quicktype Ts
Generate typescript types from pydantic models (or JSON schemas) using Quicktype
Usage
Make sure you have quicktype installed:
npm -g i quicktype
from pydantic import BaseModel, ConfigDict
from quicktype_ts import pydantic2typescript
class User(BaseModel):
model_config = ConfigDict(extra='forbid')
name: str
age: int
friends: list['User']
print(pydantic2typescript(User))
# export type User = {
# age: number;
# friends: User[];
# name: string;
# }
Metadata
Release files for quicktype-ts 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| quicktype-ts-0.1.1.tar.gz | 1.9 kB | Without provenance | Details for quicktype-ts-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| quicktype_ts-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for quicktype_ts-0.1.1-py3-none-any.whl |
Total release size: 4.4 kB
Release files / quicktype-ts-0.1.1.tar.gz
| Download URL | quicktype-ts-0.1.1.tar.gz |
|---|---|
| Size | 1.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3e8737d9642d5609181969865e391db32e2e9e8f370dd746666e01046ab00249
|
|
BLAKE2b-256 checksum How to use checksums |
c1186b88b55d456c0e910900eabb6bcd841aa668fc63a661d70ddb94847657f5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.11.6
|
Release files / quicktype_ts-0.1.1-py3-none-any.whl
| Download URL | quicktype_ts-0.1.1-py3-none-any.whl |
|---|---|
| Size | 2.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ae32a790d9820bcf0b342ede6759eb223e0052dfc8bed600c2ab1b905af6cdff
|
|
BLAKE2b-256 checksum How to use checksums |
223093be06e6b274f4986a87894d7f21942b533588b2ec25376324b2eb18f925
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.11.6
|
Security for quicktype-ts 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.