Skip to content

Updated hash methods and support python version 3.10

Latest
Compare
Choose a tag to compare
@benhall-7 benhall-7 released this 05 Nov 16:17
  • Python versions available have been shifted from [3.6 to 3.9] to [3.7 to 3.10] to support the latest version.
  • The hash class now relies on the loaded label map to determine how to convert a string into a hash. If a label isn't found, it falls back to the regular algorithm.
  • You can also use the hash.set_strict(true) method to change the fallback behavior, and throw an error if the label is not found. This might help a user to catch typos in label names.
  • With the hash.algo("my_string") method, you can use the hash40 algorithm directly and skip label lookups. You probably will not need to use this unless you are using the strict flag.