# User Importing and Exporting an Object From Perspective Project With 'Pretty' Formatting

**URL:** <https://forum.inductiveautomation.com/t/user-importing-and-exporting-an-object-from-perspective-project-with-pretty-formatting/81818>\
**Category:** Ignition\
**Tags:** ignition81, scripting, perspective\
**Created:** [November 13, 2023, 5:20pm UTC](https://forum.inductiveautomation.com/t/user-importing-and-exporting-an-object-from-perspective-project-with-pretty-formatting/81818 "2023-11-13T17:20:51Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![bkarabinchak.psi](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bkarabinchak.psi/32/83567_2.png) [@bkarabinchak.psi](https://forum.inductiveautomation.com/u/bkarabinchak.psi)\
**Post date:** [November 13, 2023, 5:26pm UTC](https://forum.inductiveautomation.com/t/user-importing-and-exporting-an-object-from-perspective-project-with-pretty-formatting/81818/2 "2023-11-13T17:26:03Z")

</div>

> [@Using dict comprehension to append data](https://forum.inductiveautomation.com/t/using-dict-comprehension-to-append-data/77225/20):
>
> Regarding pretty printing of (assuming) dictionaries hopefully eases your pain a bit, I keep this in a project library so I can call it when needed. import pprint mydict = {'nest0':'hi', 'nest1':{'something':1}, 'nest2':{'nest1again':{'somethingelse':'bye'}} } pp = pprint.PrettyPrinter(depth=4) pp.pprint(mydict) [image] In my experince PyDataSets are most useful when you want access to all or almost all columns in a dictionary. So for things like for (someCol1, someCol2, someCol3…

If you want the string I think you can use `formattedString = pp.pformat(mydict)` to get the string.

Having said that there is also [https://docs.inductiveautomation.com/display/DOC81/system.perspective.download](https://docs.inductiveautomation.com/display/DOC81/system.perspective.download)

---

_[View the full topic](https://forum.inductiveautomation.com/t/user-importing-and-exporting-an-object-from-perspective-project-with-pretty-formatting/81818)._
