Filters v1.1.7
Filters v1.1.7
-
[#13]
FilterMapper.apply
now returns an unordereddict
by default.- To restore the previous behavior, pass an
OrderedDict
to the filter's initializer. Example:
# Filter returns a dict (new behavior): filter_ = f.FilterMapper({ 'id': f.Int, 'subject': f.Required | f.Unicode, }) # Filter returns an OrderedDict (old behavior): filter_ = f.FilterMapper(OrderedDict(( ('id', f.Int), ('subject', f.Required | f.Unicode), )))
- To restore the previous behavior, pass an
-
[#15] Fixed ambiguous error message when
FilterMapper
detects an unexpected key in the input. -
MaxBytes
now returns correct type when using encodings other than UTF-8. -
Chaining a filter with
None
now correctly returns aFilterChain
instance. -
General code cleanup:
- Improved docstrings and comments.
- Fixed some incorrect type hints.
- Fixed some RST syntax problems.
- Made code formatting more consistent.
- Made some unit tests more fun to read.
-
No longer includes
typing
when installing into Python 3 envs. -
Travis now also builds wheels during deployments.
Signature/Checksums
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
# Filters v1.1.7
* [#13] `FilterMapper.apply` now returns an unordered `dict` by default.
* To restore the previous behavior, pass an `OrderedDict` to the filter's initializer. Example:
```python
# Filter returns a dict (new behavior):
filter_ = f.FilterMapper({
'id': f.Int,
'subject': f.Required | f.Unicode,
})
# Filter returns an OrderedDict (old behavior):
filter_ = f.FilterMapper(OrderedDict((
('id', f.Int),
('subject', f.Required | f.Unicode),
)))
```
* [#15] Fixed ambiguous error message when `FilterMapper` detects an unexpected key in the input.
* `MaxBytes` now returns correct type when using encodings other than UTF-8.
* Chaining a filter with `None` now correctly returns a `FilterChain` instance.
* General code cleanup:
* Improved docstrings and comments.
* Fixed some incorrect type hints.
* Fixed some RST syntax problems.
* Made code formatting more consistent.
* Made some unit tests more fun to read.
* No longer includes `typing` when installing into Python 3 envs.
* Travis now also builds wheels during deployments.
# Binary Distribution Checksums
* filters-1.1.7.tar.gz
* sha256: bd9556357bc9e078125fc1afa9dcf96a0cfbfc73cafc67260a0df21a91d3d6b9
* md5: 9dcb5bca811da67c961868fb32b3d3ba
* filters-1.1.7-py2-none-any.whl
* sha256: 959c0a736f7f11fc9d22b75b1b1d4baec26fb3e3d32fbea491d66368f14031d9
* md5: 00a8702240518df5caeaa97f7eac523d
* filters-1.1.7-py3-none-any.whl
* sha256: b528477a067f907b75be60bb9e0bf4746b2dedbee1b849d71b9f5ad0a5334173
* 47813f5cae1b311ed266d2209293ea73
-----BEGIN PGP SIGNATURE-----
iQIcBAEBCAAGBQJY+A7yAAoJEC2oW+MnuUmsQlQQAJ3VoFfoxmxuUS/Uf9qYAoMt
L6uOF50oSLrcJ8kn3T4HNJajm53sxVlOAilwN2t+LxFoxxy5629fHr/cg6QJFOCr
V+g3t61d6jOCpCFGChR2YEym87EBrZjYwe6NqsPAAD3QEn0w/m+ZSkON8WQ0cA3l
9MndwVusLbYfQC2SY69xSM0Ba9zOhG8H5bR934nPOz2O5nwXWWkGvQxAllaNgUSX
iLkMMKPaueLID601HoVacCIHKIXelraYM2/+XA/9fgL+wc9A2fZsO3NCA6Io0iMj
1KTLH1NOanM6+hBv2KGrX8MWXtNznXWxhPutRfL+tO4VWsclLZqCJvfqAtD7dLe1
lRRi3bJw4e/ChxwfSXT+0jZWWwC6Ne8X9jJoLU1uJ3i2l2YRZOx7R9sPK17hqgol
aX+MyDAd2WZRGKr19GHKXb7ejWqzGx/8RhUKaytPxE5J6ndgIcwW7oUb74y1icIB
QutLuJGnAWLpLLGs1E/U0ygADqse7tAFfkH0mLoP09r95cxfYsoHPUoYSEdYY18J
h6aLhiFIWGSt474PFOtHrxAb1Pb9DW1Iko5kz1kvDc1lcVpgsVA2gSy9X9CmrZs9
SR0i424aLzlMlwuG03ZJSJFQF6EmfFQJ6C/w6fy9H3dfVb3/QJsPo8d0L6sOb+Q5
BKdjQVdr9PoNePIK//GM
=zXwv
-----END PGP SIGNATURE-----