Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Siddharthvipul/parsers #38

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

Conversation

siddharthvipul
Copy link
Collaborator

  • empty directories (holders) for other tools
  • add smallfile parser
  • add sample output of smallfile (read and write)
  • add sample output of the parser

log to stderr? : False
ext.attr.size : 0
ext.attr.count : 0
host = dhcp37-55.lab.eng.blr.redhat.com,thr = 00,elapsed = 22.428904,files = 1000,records = 1000,status = ok

Choose a reason for hiding this comment

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

Remove all references to internal IPs in public code.

@@ -0,0 +1,84 @@
#!/usr/bin/python3

Choose a reason for hiding this comment

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

make parsers a python module and fix names appropriately.

attr = []
with open(file_name) as fobj:
data_file = fobj.read().split("\n")
for line in data_file:

Choose a reason for hiding this comment

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

Have you looked at whether smallfile already outputs CSV and if you can use that instead?

Copy link
Collaborator

@ShyamsundarR ShyamsundarR Aug 23, 2018

Choose a reason for hiding this comment

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

With th option --output-json smallfile will output JSON data, this maybe more useful from a parsing standpoint.

smallfile does output csv, but that is more for when we give --response-times option, and records response times for each operation. Noting that here. Also, we possibly do not need that.

I would prefer parsing JSON in this case, rather than CLI output.

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

Successfully merging this pull request may close these issues.

3 participants