All notable changes to this project will be documented in this file. The format is based on Keep a Changelog.
This project adheres to Semantic Versioning.
Nothing yet
- Basic implementation of
powpow.cat
andpowpow.CatResult
. powpow.GrepResult
is now actually importable from the top-level namespace.powpow.GrepResult
is now guaranteed to have all of the methods thestr
class has. These methods operate on the same strings as returned by__str__
ofGrepResult
objects.- Property
.matched_lines
ofpowpow.GrepResult
, which returns a dict with line indexes mapped to matches (re.Match
objects) found in a given line. powpow.GrepResult
now has__eq__
and__hash__
implemented.
powpow.grep
now uses there
module for finding matches.- The
.matches
property ofpowpow.GrepResult
returns a list ofre.Match
objects now. powpow.grep
will no longer accept an emptypattern
string, raisingValueError
instead.powpow.GrepResult
now holds the string against which the match was performed in its.input
attribute.- Return values of
powpow.GrepResult
's__str__
and__repr__
methods, andmatches
property, are now cached.
powpow.GrepResult.__repr__
no longer raisesAtributeError
.
- New
powpow.GrepResult
class. Objects of this class provide detailed introspection into results ofpowpow.grep
, and theirrepr()
handles presentation of the output, instead ofprint()
ing it out like it was before.
powpow.grep
now returns aGrepResult
object -grep
no longer prints its results into stdout.
- PowPow Grep is now directly importable from
powpow
module aspowpow.grep
. powpow.grep
will now usepproint.pformat
for translating objects to strings, instead of the plainrepr()
.
powpow.grep
can now bestr()
-ingified to obtain the contents that it prints.
First version of the library.
- The most basic, dashed of version of PowPow Grep utility.