verify: Release v1.0.0

Verify v1.0.0 has been released.

It was the first major release which now solidifies the public API. There were several breaking changes along the way but iteration was much quicker than some of my other projects (1 week from v0.0.0 to v1.0.0).

There are currently 71 validation methods and two styles of assertion runners: positional arguments and method chaining. There are no immediate plans to add additional validators but feature requests are welcome.

What is verify?

A painless assertion and validation library for Python.

It is Python 2.7+ and 3.3+ compatible.


Get it on Github and PyPI.


Below are all changes from v0.0.0 to v1.0.0.

v1.0.0 (2015-05-15)

  • Add NotLength.
  • Make assertions accept an optional argument, msg, that overrides the default assert message on a per call basis.
  • Make Between and Length only accept keyword arguments min and max. (breaking change)

v0.6.0 (2015-05-14)

  • Make expect into a class and support method chaining of assertions. Original usage is still supported.
  • Make expect wrap external predicate functions with Predicate for evaluation. (breaking change)
  • Make Predicate catch AssertionError thrown by comparable and return False. (breaking change)
  • Make Predicate treat a comparable that returns None as passing. (breaking change)
  • Rename InstanceOf and NotInstanceOf to Type and NotType. (breaking change)

v0.5.0 (2015-05-12)

  • Add NotEqual.
  • Add NotMatch.
  • Add NotBetween.
  • Add IsNot.
  • Add IsNotTrue.
  • Add IsNotFalse.
  • Add IsNotNone.
  • Add NotAll.
  • Add NotAny.
  • Add NotIn.
  • Add NotContains.
  • Add NotContainsOnly.
  • Add NotSubset.
  • Add NotSuperset.
  • Add NotUnique.
  • Add NotInstanceOf.
  • Add NotBoolean.
  • Add NotString.
  • Add NotDict.
  • Add NotList.
  • Add NotTuple.
  • Add NotDate.
  • Add NotDateString.
  • Add NotInt.
  • Add NotFloat.
  • Rename NaN to NotNumber. (breaking change)

v0.4.0 (2015-05-12)

  • Make Between accept keyword arguments for min and max.
  • Make Length function like Between and allow comparison over range of lengths. If a single comparable value is passed in, then comparison uses the value as a max length. Previously, a single comparable value performed an equality check for length. (breaking change)
  • Make Match accept keyword argument flags for use with string based regular expression.

v0.3.0 (2015-05-11)

  • Add Match.
  • Add Subset.
  • Add Superset.
  • Add Unique.
  • Add Date.
  • Add DateString.
  • Add Positive.
  • Add Negative.
  • Add Even.
  • Add Odd.
  • Add Monotone.
  • Add Increasing.
  • Add StrictlyIncreasing.
  • Add Decreasing.
  • Add StrictlyDecreasing.

v0.2.0 (2015-05-11)

  • Add All.
  • Add Any.
  • Add Between.
  • Add Contains.
  • Add ContainsOnly.
  • Add Length.
  • Make Not compatible with bare predicate functions by return the evaluation of the comparable.

v0.1.1 (2015-05-08)

  • Make expect include an assertion message on failure. Without it, a cryptic NameError is thrown when a plain predicate function fails due to a generator being used in the all() call.

v0.1.0 (2015-05-08)

  • Add Boolean.
  • Add Dict.
  • Add Float.
  • Add Int.
  • Add IsTrue.
  • Add IsFalse.
  • Add List.
  • Add NaN.
  • Add Number.
  • Add Predicate.
  • Add String.
  • Add Tuple.
  • Rename Except to except. (breaking change)
  • Make except not call value if it's callable. (breaking change)
  • Make except return True if all assertions pass.

v0.0.1 (2015-05-07)

  • First release.


Comments powered by Disqus