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

# Token

## Overview

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

Token objects expose lexical details such as the token text, type, line number, and column position, useful for custom parsers.

This class declares 2 methods for Token objects in Python programs.
Available methods include: `__init__`, `__repr__`.
Public members are accessible to any Python application after installing the Aspose.3D FOSS for Python package.
Properties: `column`, `line`, `text`, `type`.

## Properties

| Name | Type | Access | Description |
|------|------|--------|-------------|
| `text` | `str` | Read | Gets the text. |
| `type` | `int` | Read | Gets the type. |
| `line` | `int` | Read | Gets the line. |
| `column` | `int` | Read | Gets the column. |

## Methods

| Signature | Description |
|-----------|-------------|
| `__init__(text: str, token_type: int, line: int, column: int)` | Calls __init__(text, token_type, line, column) on this Token instance. |
| `__repr__()` | Calls __repr__ on this Token instance. |

## See Also

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