{"id":8120,"library":"django-utils-six","title":"django-utils-six","description":"django-utils-six is a Python library (version 2.0) designed to provide forward compatibility for `django.utils.six` in Django 3.0 and later versions. `django.utils.six` was a Python 2/3 compatibility module bundled with Django, but it was removed in Django 3.0. This library fills that gap, allowing older third-party applications that still depend on `from django.utils import six` to function correctly without modification in Django 3+ environments. It is a niche compatibility layer with infrequent releases.","status":"maintenance","version":"2.0","language":"python","source_language":"en","source_url":"https://github.com/whtsky/django-utils-six","tags":["django","compatibility","six","python2-python3"],"install":[{"cmd":"pip install django-utils-six","lang":"bash","label":"Install latest version"}],"dependencies":[{"reason":"This library bundles and re-exposes the 'six' compatibility library.","package":"six","optional":false}],"imports":[{"wrong":"from django_utils_six import six","symbol":"six","correct":"from django.utils import six"}],"quickstart":{"code":"pip install django-utils-six","lang":"bash","description":"Install django-utils-six. This package automatically makes `django.utils.six` available, allowing third-party libraries that rely on this deprecated import to function on Django 3+ without modification. There is no typical direct code usage; its primary role is passive compatibility."},"warnings":[{"fix":"Install `django-utils-six` to restore the `django.utils.six` path, or upgrade affected third-party packages to versions compatible with Django 3+, or refactor custom code to remove `six` usage for Python 3-only projects.","message":"Django 3.0 and later versions removed `django.utils.six`. Projects or third-party applications attempting to import `django.utils.six` will raise an `ImportError`.","severity":"breaking","affected_versions":"Django 3.0+"},{"fix":"For new projects targeting Python 3 exclusively, avoid `six` and refactor code to use native Python 3 features (e.g., `str` instead of `six.text_type`). For older projects, use this library as a temporary bridge while migrating away from `six`.","message":"The underlying `six` library, and thus `django-utils-six`, is primarily for Python 2/3 compatibility. With Python 2 end-of-life, `six` is largely unnecessary for new Python 3-only projects.","severity":"deprecated","affected_versions":"All versions"},{"fix":"Prioritize updating or replacing third-party packages that depend on `django.utils.six`. If maintaining custom code, refactor `six` imports and usage to directly use `import six` (if necessary) or Python 3 constructs.","message":"This library is a temporary solution for legacy dependencies. Relying on `django-utils-six` long-term is not ideal; the recommended approach is to ensure all dependencies are compatible with modern Django and Python versions that do not require `six`.","severity":"gotcha","affected_versions":"All versions"}],"env_vars":null,"search_vec":"'2.0':14 '2/3':32 '3':71 '3.0':24,44 'allow':50 'applic':55 'bundl':35 'compat':19,33,77,83 'correct':66 'depend':58 'design':15 'django':2,6,23,37,43,70,82 'django-utils-six':1,5 'django.utils':61 'django.utils.six':21,28 'environ':72 'fill':47 'forward':18 'function':65 'gap':49 'import':62 'infrequ':80 'later':26 'layer':78 'librari':12,46 'modif':68 'modul':34 'nich':76 'older':51 'parti':54 'provid':17 'python':11,31 'python2':86 'python2-python3':85 'python3':87 'releas':81 'remov':41 'six':4,8,63,84 'still':57 'third':53 'third-parti':52 'util':3,7 'version':13,27 'without':67","created_at":"2026-04-16T17:00:31.723784+00:00","updated_at":"2026-04-16T17:00:31.723784+00:00","problems":null,"ecosystem":"pypi","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":"2.0","cli_name":"","cli_version":null,"type":"library","homepage":null,"github":"https://github.com/whtsky/django-utils-six","docs":null,"changelog":null,"pypi":"https://pypi.org/project/django-utils-six/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["web-framework"],"base_url":null,"auth_type":null,"provenance":{"verified_status":"passing","verified_at":"2026-06-30","last_verified":"2026-06-30","next_check":"2026-07-30","install_tag":null}}