---
title: display
sidebarTitle: display
---

# `pdsx._internal.display`


display utilities for rich output.

## Functions

### `_value_to_dict` <sup><a href="https://github.com/zzstoatzz/pdsx/blob/main/src/pdsx/_internal/display.py#L23" target="_blank"><Icon icon="github" style="width: 14px; height: 14px;" /></a></sup>

```python
_value_to_dict(value: object) -> dict[str, object]
```


convert a record value to a dict, handling pydantic models and DotDict.


### `display_records` <sup><a href="https://github.com/zzstoatzz/pdsx/blob/main/src/pdsx/_internal/display.py#L35" target="_blank"><Icon icon="github" style="width: 14px; height: 14px;" /></a></sup>

```python
display_records(collection: str, records: list[models.ComAtprotoRepoListRecords.Record]) -> None
```


display a list of records.

**Args:**
- `collection`: collection name
- `records`: list of record objects
- `output_format`: output format enum


### `display_record` <sup><a href="https://github.com/zzstoatzz/pdsx/blob/main/src/pdsx/_internal/display.py#L141" target="_blank"><Icon icon="github" style="width: 14px; height: 14px;" /></a></sup>

```python
display_record(response: models.ComAtprotoRepoGetRecord.Response) -> None
```


display a single record.

**Args:**
- `response`: atproto record response
- `output_format`: output format enum (default\: table with panel)


### `display_success` <sup><a href="https://github.com/zzstoatzz/pdsx/blob/main/src/pdsx/_internal/display.py#L197" target="_blank"><Icon icon="github" style="width: 14px; height: 14px;" /></a></sup>

```python
display_success(operation: str, uri: str, cid: str, collection: str = '') -> None
```


display a success message.

**Args:**
- `operation`: operation performed (created, updated, deleted)
- `uri`: record uri
- `cid`: record cid
- `collection`: optional collection name

