Yes, you can programmatically retrieve trace attributes from Phoenix using the Phoenix Python API. You can use the `get_spans_dataframe` method from the Phoenix client to pull a dataframe of the traces, which includes attributes. Here's an example:
```
import phoenix as px
# Initialize the Phoenix client
client = px.Client()
# Get the spans dataframe
spans_df = client.get_spans_dataframe()
# Display the dataframe
print(spans_df)
```
This code will retrieve the spans from your Phoenix session, including their attributes, and display them in a dataframe. Would you like more detail on any specific part?
Sources:
- <https://arize-ai.slack.com/archives/C04R3GXC8HK/p1726632533.889129|Slack Conversation>