Skip to content

Releases: psolin/cleanco

2.3

15 May 16:20
Compare
Choose a tag to compare

What's Changed

  • Add common terms for Estonia by @aalars in #83
  • Added 2 more suffixes requested by users by @FBnil in #85
  • Support Python 3.8 - 3.12

New Contributors

Full Changelog: 2.2...2.3

2.2

16 Nov 19:55
Compare
Choose a tag to compare
2.2
  • Terms no longer need to be explicitly passed to basename()
  • New custom_basename() can be used with custom terms
  • prepare_terms() was renamed to prepare_default_terms()
  • Tests were simplified
  • Old class based API was removed

2.1

30 Jan 15:07
Compare
Choose a tag to compare
2.1
  • Support Python 3.6 - 3.9
  • Fix basename() so it works deterministically
  • Improve basename() so it ignores punctuation for matching terms
  • Fix normalization of some Unicode characters
  • Fix an error when basename() is invoked with middle=True kwarg
  • Drop Travis CI in favour of Github actions

2.0.1

26 Apr 17:17
Compare
Choose a tag to compare
  • Read README.md into pkg description
  • Major refactoring & cleanup (e.g. #16)
  • Optimizations (#31)
  • New improved API (start deprecating old)
  • Python3 only (#46)
  • Better Unicode matching (#45)
  • Switch to YYYY-MM-DD version timestamps

PyPI release (1.1)

24 Aug 13:14
Compare
Choose a tag to compare

There is now a PyPI release at https://pypi.python.org/pypi/cleanco.

It is unlikely further releases will be made here; please see PyPI instead from now on.

Production version

20 Mar 12:29
Compare
Choose a tag to compare

I finally settled on the algorithm that I wanted, which is not only far more efficient, but allows people to add or remove whatever they want from each category without worry. The code is extremely compact but works the same as when it was 1,000 lines long.

The algorithm for removing suffixes was enhanced by sorting them in a single stack by length in descending order. This allows for the removal of items like "& co." first rather than "co.", so that the "&" would not be left behind.

Leading spaces before the suffixes in the list were removed in favor of this being added on later during a loop, meaning there is a lot more consistency to the data stored in the module, and less information stored in memory.

Finally, the 'short' function was removed in favor of only one to remove extraneous items in a company name.

There may be one or two more things to clean up, but it is efficient enough to call it a 1.0 version without hesitation.