grim/pyparser
Clone
Summary
Browse
Changes
Graph
Added tag v1.0 for changeset 1f5689a9cc7a
2016-08-12, Gary Kramlich
bc9b6299e9de
Added tag v1.0 for changeset 1f5689a9cc7a
PyParser
is
a
simple
library
that
makes
it
easier
to
parse
files
.
I
wrote
it
when
I
needed
to
parse
a
ton
of
string
output
and
files
,
and
got
very
tired
of
writing
stuff
like
the
following
data
=
{}
for
line
in
output
:
line
=
line
.
strip
()
if
not
':'
in
line
:
continue
key
,
value
=
line
.
split
(
':'
,
1
)
data
[
key
]
=
value