Skip to content

Latest commit

History

History
68 lines (55 loc) 路 2.49 KB

CHANGELOG.md

File metadata and controls

68 lines (55 loc) 路 2.49 KB

Changelog

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.

Added

Nothing yet

Added

  • Basic implementation of powpow.cat and powpow.CatResult.
  • powpow.GrepResult is now actually importable from the top-level namespace.
  • powpow.GrepResult is now guaranteed to have all of the methods the str class has. These methods operate on the same strings as returned by __str__ of GrepResult objects.
  • Property .matched_lines of powpow.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.

Changed

  • powpow.grep now uses the re module for finding matches.
  • The .matches property of powpow.GrepResult returns a list of re.Match objects now.
  • powpow.grep will no longer accept an empty pattern string, raising ValueError 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, and matches property, are now cached.

Fixed

  • powpow.GrepResult.__repr__ no longer raises AtributeError.

Added

  • New powpow.GrepResult class. Objects of this class provide detailed introspection into results of powpow.grep, and their repr() handles presentation of the output, instead of print()ing it out like it was before.

Changed

  • powpow.grep now returns a GrepResult object - grep no longer prints its results into stdout.

Changed

  • PowPow Grep is now directly importable from powpow module as powpow.grep.
  • powpow.grep will now use pproint.pformat for translating objects to strings, instead of the plain repr().

Added

  • powpow.grep can now be str()-ingified to obtain the contents that it prints.

First version of the library.

Added

  • The most basic, dashed of version of PowPow Grep utility.