Skip to content

Latest commit

 

History

History
96 lines (72 loc) · 3.87 KB

CHANGELOG.md

File metadata and controls

96 lines (72 loc) · 3.87 KB

Releases

  • Added: logging.ColoredFormatter, logging.ColoredLogger: Generates colored logs.
  • Added: text.slugify: Generate slug from string.
  • Changed: functional.classproperty: Descriptor to change the getter on a classproperty.

v2.9.0 (2023-06-23)

  • Added: jsonlines.dump_fork: Incrementally dumps different groups of elements into the indicated jsonlines file.
  • Added: tests to json.idump_fork
  • Added: json.idump_fork: Incrementally dumps different groups of elements into the indicated JSON file. *** Useful to reduce memory consumption ***

v2.8.0 (2023-06-16)

  • Added: dictionary.tree
  • Added: new tests to logging iterator
  • Added: new tests to jsonlines
  • Added: jsonlines module: Useful functions for working with jsonlines and ndjson: dumper, dumps, dump, dump_into, load, load_from. TODO: stream compressors: gzip bzip2 supporting

v2.7.0 (2023-05-11)

  • Improved: json.dump_from_csv reduce memory consumption, now uses idump_into
  • Added: json.idump_lines

v2.6.0 (2023-04-17)

  • Added: json.idump_into
  • Added: file.get_valid_filename
  • Added: iterator.partition
  • Added: iterator.normalize_newlines
  • Changed: Rename iterator.has_only_one to iterator.only_one

v2.5.0 (2023-02-17)

  • Fixed: logging.timed_block docstring
  • Added: text.get_random_secret, text.get_random_string
  • Added: functional.identity Identity function, as defined in https://en.wikipedia.org/wiki/Identity_function.
  • Added: text.multireplacer Returns a multiple replacement function.
  • Added: iterator.ipush Iterator class supporting append and prepend.
  • Added: dates.IsoWeekDay, dates.WeekDay enums.

v2.4.0 (2023-01-30)

  • Fixed text.multireplace
  • Added: functional.caller, functional.suppress
  • Changed: Moved retry.retry_if_errors, retry.retry_if_none to functional.retry_if_errors, functional.retry_if_none
  • Changed: retry.retry_if_errors. Used functools.wraps to apply update_wrapper.
  • Changed: file.decompress. Added size arg.
  • Changed: Purpose of n arg of algorithm.fibonacci.
  • Changed: json.dump_into, json.dump_into_zip, json.dump_from_csv. Pass **kwargs to json.dump/s

v2.3.0 (2023-01-13)

  • Added: iterator.mul, iterator.truediv, iterator.sub
  • Added: functional.set_attributes
  • Added: json.JSONEncoder. Handles additional types compared to json.JSONEncoder
  • Changed: dictionary.DigestGetter. Now does not support enums and uses the new pymince.json.JSONEncoder.

v2.2.1 (2023-01-12)

  • Fixed: README

v2.2.0 (2023-01-12)

  • Fixed: dictionary.find_leaf_value. Infinite recursion for args: key="a", dictionary={"a": "b", "b": "a"}
  • Added: New tests. Better coverage
  • Added: text.are_anagram, text.fullstr.are_anagram
  • Added: unctional.once
  • Added: iterator.centroid
  • Added: Upgrade ruff and fix new warnings
  • Changed: Remove fn useless iterator.contains. Improve performance of other iterator.py functions.

v2.1.0 (2022-12-28)

  • Added: Apply the black code formatter.
  • Added: Apply ruff badge to README.
  • Added: Install pre-commit. Run black, ruff, flake8 on pre-commit.
  • Added: Apply pre-commit badge to README.
  • Added: text.multireplace
  • Added: algorithm.sieve_of_eratosthenes. Primes less than n.
  • Added: functional.pipe. Pipe function
  • Improved: iterator: splitter, uniques, uniquer, consume, all_equals, all_identical, all_equal, has_only_one

v2.0.0 (2022-12-22)

  • Added: Changelog
  • Added: json.dump_from_csv
  • Added: text.is_roman, text.fullstr('').is_roman
  • Fixed: ruff warnings