Repository navigation
Releases: takina0802/bsutils
Releases · takina0802/bsutils
Release list
v0.0.6
What's changed
- Iterator: implement iterator protocol (
__iter__/__next__) and support for-each loop - Iterator: add
skip(n)andtake(n)chainable operations - Iterator: convert
map/filterto return self for consistent chaining - Iterator: add
catch_exceptionsupport for gracefully handling iteration errors - Iterator: clean up type hints and remove unused fields
- Iterator: add comprehensive unit tests covering all operations and edge cases
Full Changelog: v0.0.5...v0.0.6
v0.0.5
What's changed
- Json: add functionality for user to control over file types
- Iterator: support ignore exception in
Iterator.join - Io: add
open_and_*for dealing common file io - Option and Result: enhance
optionalifyandresultifyto return existingOptionandResultinstances
Full Changelog: v0.0.4...v0.0.5
v0.0.4-post3
What's changed
- Fix the bug of recursive import between
result.pyandoption.py.
Full Changelog: v0.0.4-post2...v0.0.4-post3
v0.0.4-post2
What's changed
- Upgrade
OutputCaptureto capture output from c extensions, etc.
Full Changelog: v0.0.4-post1...v0.0.4-post2
v0.0.4-post1
v0.0.4
What's changed
- Correct type annotation of
ResultandOption - Add function decorator to convert return value to
ResultandOption
Full Changelog: v0.0.3...v0.0.4
v0.0.3
v0.0.2-post3
What's changed
- Fix bugs when parsing as jsonl after failing to parse as json
- Update
Result.__repr__
Full Changelog: v0.0.2-post2...v0.0.2-post3
v0.0.2-post2
What's Changed
- Add
Result, used to obtain the result of a function rather than exceptions, similar to result. - Add
Option, used to explicitly indicate variable types that may have no value.
Full Changelog: v0.0.2-post1...v0.0.2-post2
v0.0.2-post1
What's Changed
- Update documents, including README and function comments.
- Add file utilities.
- Add
jsonl_to_json,jsonl_to_json,write_json_fileandload_json_filein json utilities. - Re-export all the utilities in
__init__.py.
Full Changelog: https://github.com/wangzhen0518/bsutils/commits/v0.0.2-post1