Skip to content

0.3.0

Compare
Choose a tag to compare
@ducdetronquito ducdetronquito released this 08 Aug 11:38
· 23 commits to master since this release
5987cef

The version 0.3.0 of Scalpl includes the following changes:

Breaking changes

  • Simplification of the API by removing the LightCut class. To keep the same behavior in your codebase, just replace the LightCutclass by the Cut class.

Features

  • Improvement of the error handling by providing more detailed exceptions.
    proxy = Cut(data)
    proxy["trainers.Ash.pokemons[42].name"] = "Charmander"
    > IndexError: Cannot access index '42' in path 'trainers.Ash.pokemons[42].name', because of error: IndexError('list index out of range',).
    
    proxy["trainers.Giovanni"]
    > KeyError: Cannot access key 'Giovanni' in path 'trainers.Giovanni', because of error: KeyError('Giovanni',).
  • Provide type hints for all the methods of the Cut class