Skip to content
This repository was archived by the owner on Jul 6, 2024. It is now read-only.

added CSV output option #11

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

JamesHabben
Copy link

dump_instances_csv function added to formatters.py and dump_class_instance.py updated to use argparse and new CSV function


for instance in i:
ret += '"{0}","{1}","{2}","{3}","{4}"'.format(cd.class_name, cd.super_class_name, str(instance.key), instance.ts1, instance.ts2)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

recommend using the csv or unicodecsv package to format the rows. it handles escaping properly, which will be useful in the unlikely situation that any of these values contain a quotation mark.

option to add host column
@JamesHabben
Copy link
Author

This ded?

@williballenthin
Copy link
Contributor

you ded? 😋 hey James, it's been a while!

happy to reconsider and merge if you'd still find this PR useful.

@JamesHabben
Copy link
Author

Ha! Hey man, ya been a while. I was combing through some of the open issues and PRs from this account. Then also missed your reply notification somehow. I haven't used this tool in quite some time, so fine with me to close this out to clear up the project.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants