├── .eslintrc.js ├── .github └── workflows │ ├── publish.yaml │ └── tests.yaml ├── .gitignore ├── .npmignore ├── .nvmrc ├── LICENSE ├── README.md ├── babel.config.cjs ├── package.json ├── src ├── ParserState.ts ├── canonicalTypeName.ts ├── config.ts ├── getDocumentationStringForType.ts ├── index.ts ├── isValidPythonIdentifier.ts ├── newHelperTypeName.ts ├── parseExports.ts ├── parseInlineType.ts ├── parseProperty.ts ├── parseTypeDefinition.ts ├── testing │ ├── basic.test.ts │ ├── dicts.test.ts │ ├── generics.test.ts │ ├── helperTypes.test.ts │ ├── imports.test.ts │ ├── readme.test.ts │ ├── reference.test.ts │ └── utils.ts └── typeScriptToPython.ts ├── tsconfig.json └── yarn.lock /.eslintrc.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheLartians/TypeScript2Python/HEAD/.eslintrc.js -------------------------------------------------------------------------------- /.github/workflows/publish.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheLartians/TypeScript2Python/HEAD/.github/workflows/publish.yaml -------------------------------------------------------------------------------- /.github/workflows/tests.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheLartians/TypeScript2Python/HEAD/.github/workflows/tests.yaml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | /node_modules 2 | /build 3 | /yarn-error.log 4 | /dist 5 | -------------------------------------------------------------------------------- /.npmignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheLartians/TypeScript2Python/HEAD/.npmignore -------------------------------------------------------------------------------- /.nvmrc: -------------------------------------------------------------------------------- 1 | v18.15.0 2 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheLartians/TypeScript2Python/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheLartians/TypeScript2Python/HEAD/README.md -------------------------------------------------------------------------------- /babel.config.cjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheLartians/TypeScript2Python/HEAD/babel.config.cjs -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheLartians/TypeScript2Python/HEAD/package.json -------------------------------------------------------------------------------- /src/ParserState.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheLartians/TypeScript2Python/HEAD/src/ParserState.ts -------------------------------------------------------------------------------- /src/canonicalTypeName.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheLartians/TypeScript2Python/HEAD/src/canonicalTypeName.ts -------------------------------------------------------------------------------- /src/config.ts: -------------------------------------------------------------------------------- 1 | 2 | export type Ts2PyConfig = { 3 | nullableOptionals?: boolean; 4 | } 5 | -------------------------------------------------------------------------------- /src/getDocumentationStringForType.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheLartians/TypeScript2Python/HEAD/src/getDocumentationStringForType.ts -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheLartians/TypeScript2Python/HEAD/src/index.ts -------------------------------------------------------------------------------- /src/isValidPythonIdentifier.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheLartians/TypeScript2Python/HEAD/src/isValidPythonIdentifier.ts -------------------------------------------------------------------------------- /src/newHelperTypeName.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheLartians/TypeScript2Python/HEAD/src/newHelperTypeName.ts -------------------------------------------------------------------------------- /src/parseExports.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheLartians/TypeScript2Python/HEAD/src/parseExports.ts -------------------------------------------------------------------------------- /src/parseInlineType.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheLartians/TypeScript2Python/HEAD/src/parseInlineType.ts -------------------------------------------------------------------------------- /src/parseProperty.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheLartians/TypeScript2Python/HEAD/src/parseProperty.ts -------------------------------------------------------------------------------- /src/parseTypeDefinition.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheLartians/TypeScript2Python/HEAD/src/parseTypeDefinition.ts -------------------------------------------------------------------------------- /src/testing/basic.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheLartians/TypeScript2Python/HEAD/src/testing/basic.test.ts -------------------------------------------------------------------------------- /src/testing/dicts.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheLartians/TypeScript2Python/HEAD/src/testing/dicts.test.ts -------------------------------------------------------------------------------- /src/testing/generics.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheLartians/TypeScript2Python/HEAD/src/testing/generics.test.ts -------------------------------------------------------------------------------- /src/testing/helperTypes.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheLartians/TypeScript2Python/HEAD/src/testing/helperTypes.test.ts -------------------------------------------------------------------------------- /src/testing/imports.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheLartians/TypeScript2Python/HEAD/src/testing/imports.test.ts -------------------------------------------------------------------------------- /src/testing/readme.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheLartians/TypeScript2Python/HEAD/src/testing/readme.test.ts -------------------------------------------------------------------------------- /src/testing/reference.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheLartians/TypeScript2Python/HEAD/src/testing/reference.test.ts -------------------------------------------------------------------------------- /src/testing/utils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheLartians/TypeScript2Python/HEAD/src/testing/utils.ts -------------------------------------------------------------------------------- /src/typeScriptToPython.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheLartians/TypeScript2Python/HEAD/src/typeScriptToPython.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheLartians/TypeScript2Python/HEAD/tsconfig.json -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheLartians/TypeScript2Python/HEAD/yarn.lock --------------------------------------------------------------------------------