Skip to content

Releases: takina0802/bsutils

v0.0.6

Choose a tag to compare

@takina0802 takina0802 released this 31 May 10:21

What's changed

  1. Iterator: implement iterator protocol (__iter__/__next__) and support for-each loop
  2. Iterator: add skip(n) and take(n) chainable operations
  3. Iterator: convert map/filter to return self for consistent chaining
  4. Iterator: add catch_exception support for gracefully handling iteration errors
  5. Iterator: clean up type hints and remove unused fields
  6. Iterator: add comprehensive unit tests covering all operations and edge cases

Full Changelog: v0.0.5...v0.0.6

v0.0.5

Choose a tag to compare

@takina0802 takina0802 released this 07 Aug 02:09

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 optionalify and resultify to return existing Option and Result instances

Full Changelog: v0.0.4...v0.0.5

v0.0.4-post3

Choose a tag to compare

@takina0802 takina0802 released this 03 Jun 16:13

What's changed

  • Fix the bug of recursive import between result.py and option.py.

Full Changelog: v0.0.4-post2...v0.0.4-post3

v0.0.4-post2

Choose a tag to compare

@takina0802 takina0802 released this 03 Jun 16:10

What's changed

  • Upgrade OutputCapture to capture output from c extensions, etc.

Full Changelog: v0.0.4-post1...v0.0.4-post2

v0.0.4-post1

Choose a tag to compare

@takina0802 takina0802 released this 03 Jun 11:28

What's changed

  • Fix some errors in result.py

Full Changelog: v0.0.4...v0.0.4-post1

v0.0.4

Choose a tag to compare

@takina0802 takina0802 released this 03 Jun 11:05

What's changed

  • Correct type annotation of Result and Option
  • Add function decorator to convert return value to Result and Option

Full Changelog: v0.0.3...v0.0.4

v0.0.3

Choose a tag to compare

@takina0802 takina0802 released this 29 May 16:17

What's changed

  • Add OutputCapturer.
  • Add Iterator.

Full Changelog: v0.0.2-post3...v0.0.3

v0.0.2-post3

Choose a tag to compare

@takina0802 takina0802 released this 10 Apr 08:14

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

Choose a tag to compare

@takina0802 takina0802 released this 07 Apr 08:51

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

Choose a tag to compare

@takina0802 takina0802 released this 07 Apr 08:00

What's Changed

  • Update documents, including README and function comments.
  • Add file utilities.
  • Add jsonl_to_json, jsonl_to_json, write_json_file and load_json_file in json utilities.
  • Re-export all the utilities in __init__.py.

Full Changelog: https://github.com/wangzhen0518/bsutils/commits/v0.0.2-post1