Skip to content

Latest commit

 

History

History
67 lines (57 loc) · 1.89 KB

File metadata and controls

67 lines (57 loc) · 1.89 KB

Changelog

v2.0.0 (2025-11-14)

  • Major feature additions * Encode/decode transformer for byte ↔ string conversion * Entropy risk and total calculation functions * New Puid methods: encode(), decode(), risk(), total() * ETE (Entropy Transform Efficiency) metric

  • Code quality improvements * Full Python naming conventions (snake_case vs camelCase) * Type hints throughout core modules * Add __slots__ to Puid and ValidChars classes * Dictionary-based encoder selection (O(1) lookup) * Comprehensive test suite (108 tests)

  • Breaking changes * Function renames for Pythonic style:

    • entropy_riskrisk_for_entropy
    • entropy_totaltotal_for_entropy
    • acceptValueForaccept_value_for
    • CharMetrics.avgBitsavg_bits

v1.2.1 (2025-11-14)

  • Performance improvements * Use dictionary dispatch for encoder selection (O(1) vs O(n)) * Cache encoder functions to avoid recreation * Add __slots__ to frequently instantiated classes
  • Code quality improvements * Add comprehensive type hints * Extract magic numbers to named constants * Use namedtuple for multi-value returns * Remove duplicate encoder creation

v1.2.0 (2023-08-08)

  • Optimize bit shift
  • Add pre-defined char sets * Base16 (RFC6468). Note: Same as HexUpper * Crockford32 * WordSafe32 (Another avoid words strategy)

v1.1.0 (2022-08-04)

  • Fixed bit shift selection error
  • Reordered Puid constructor arguments
  • Altered predefined characters order to match other PUID implementations
  • Added cross-repo data testing
  • Added optional histogram tests
  • Update README
  • Create test helpers

v1.0.0 (2022-07-29)

Initial Release