Django-typomatic

Latest version: v2.5.2

Safety actively analyzes 693883 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 4 of 5

1.6.0

Features:

- Added support for serializers.ChoiceField. A Typescript union type is generated containing all choices specified in the serializer.

e.g.

python3
class ActionType(models.TextChoices):
ACTION1 = "Action1", ("Action1")
ACTION2 = "Action2", ("Action2")
ACTION3 = "Action3", ("Action3")

ts_interface()
class ActionSerializer(serializers.Serializer):
action = serializers.ChoiceField(choices=ActionType.choices)


will generate the following Typescript interface:

ts
export interface ActionSerializer {
action: Action1 | Action2 | Action3;
}

1.5.1

Changes:
- Removed GPL license and replaced with MIT license template

1.5.0

Features:
- Add camelize option to change attribute names from snake to camel casing via PR: 19

1.4.0

Features:

- Added optional argument for get_ts and generate_ts to allow 'Serializer' to be trimmed from the resulting TS output.

1.3.0

Features:

- Added support for `allow_null` on serializers via PR: 16

1.2.1

Features:

- Implemented PR: 13

Fixes:

- Fixed issue: 14

Page 4 of 5

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.