---
title: "User Defined Tuple (UDT) Functions"
component: "pytigergraph"
version: "1.7"
module: "core-functions"
html_url: "/pytigergraph/1.7/core-functions/udt"
canonical_url: "https://www.tigergraph.com/docs/pytigergraph/1.7/core-functions/udt"
markdown_url: "https://www.tigergraph.com/docs/pytigergraph/1.7/core-functions/udt.md"
---

[View as HTML](https://www.tigergraph.com/docs/pytigergraph/1.7/core-functions/udt)

# User Defined Tuple (UDT) Functions

The functions on this page retrieve information about user-defined tuples (UDT) for the graph. All functions in this module are called as methods on a [TigerGraphConnection object](https://www.tigergraph.com/docs/pytigergraph/1.8/core-functions/base.md).

## getUDTs()

`getUDTs() → list`

Returns the list of User-Defined Tuples (names only).

For information on UDTs see [User-Defined Tuple](https://www.tigergraph.com/docs/gsql-ref/4.3/basics/running-gsql.md#typedef-tuple)

#### Returns:

The list of names of UDTs (defined in the global scope, i.e. not in queries).

## getUDT()

`getUDT(udtName: str) → list`

Returns the details of a specific User-Defined Tuple (defined in the global scope).

For information on UDTs see [User-Defined Tuple](https://www.tigergraph.com/docs/gsql-ref/4.3/basics/running-gsql.md#typedef-tuple)

#### Parameter:

* `udtName`: The name of the User-Defined Tuple.

#### Returns:

The metadata (the details of the fields) of the UDT.
