---
Product: Aspose.3D
Platform: python
Page Type: reference
Canonical URL: https://reference.aspose.org/3d/python/tokentype
---

# TokenType

## Overview

`TokenType` is a class in Aspose.3D FOSS for Python.

TokenType.to_string(t) returns the textual representation of a token such as OPEN_BRACKET or DATA.

This class declares 1 method for TokenType objects in Python programs.
Available methods include: `to_string`.
Public members are accessible to any Python application after installing the Aspose.3D FOSS for Python package.

## Methods

| Signature | Description |
|-----------|-------------|
| `to_string(t)` | Converts a token enum value to its textual representation, aiding custom format parsers |

## See Also

- [Aspose.3D — Enterprise API Reference](https://reference.aspose.com/3d/)