{"categories":[{"label":"Utilities","url":"https://skillfed.io/packages/category/utilities/8"}],"enrichment":{"capability":"Morphys provides utility functions to convert between unicode and bytes types, handling encoding/decoding transparently and returning objects unchanged if already the correct type.","skillfed_tags":["python-2-legacy","string-handling"],"use_cases":["Normalize inconsistent string types from libraries that return either bytes or unicode unpredictably","Handle legacy codebases that mix unicode and bytes strings without explicit type checking","Wrap strings in StrMorpher when code needs to accept both bytes and unicode interchangeably","Ensure consistent string type handling before passing data to functions with strict type requirements"],"what_it_does":"Morphys is a lightweight utility library for handling the inconsistency between unicode and bytes types in Python 2, where non-ASCII characters can cause unexpected errors. It provides two main conversion functions\u2014ensure_bytes() and ensure_unicode()\u2014that intelligently convert between types only when necessary, and a StrMorpher class that wraps a string to behave as either type on demand. The library also supports custom encodings and defaults to utf-8.\n\nWhile the package remains compatible with Python 3, it has received no maintenance since 2017-01-10 and was designed primarily for Python 2's unicode/bytes complexity, making it largely obsolete for new projects.","worth_installing":"No. The package is abandoned (last update 2017-01-06) and designed primarily for Python 2. While it has no known vulnerabilities and installs easily, modern Python 3 projects have no practical need for this library. Only consider it for maintaining legacy Python 2 codebases."},"id":"morphys","links":{"html":"https://skillfed.io/packages/morphys","md":"https://skillfed.io/packages/morphys.md","pypi":"https://pypi.org/project/morphys/"},"maintenance":{"status":"abandoned"},"meta":{"latest_release":"2017-01-10","license_spdx":null,"license_treatment":"permissive","name":"morphys","python_support":"unspecified","summary":"Smart conversions between unicode and bytes types for common cases"},"popularity":{"monthly_downloads":196578,"position":9779,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"1.0"}
