{"id":44748,"library":"django-etc","title":"django-etc","description":"A collection of tiny, reusable utilities for Django that don't warrant their own apps. Current version 1.4.0, maintenance mode with infrequent releases.","status":"active","version":"1.4.0","language":"python","source_language":"en","source_url":"https://github.com/idlesign/django-etc","tags":["django","utilities","templates","views"],"install":[{"cmd":"pip install django-etc","lang":"bash","label":"Latest stable"}],"dependencies":[],"imports":[{"wrong":"from etc.views import BaseView","symbol":"VERSION","correct":"from etc import VERSION"}],"quickstart":{"code":"from etc import get_val_from_dict\n\nmy_dict = {'key': 'value'}\nresult = get_val_from_dict(my_dict, 'key', default='not found')\nprint(result)\n\nfrom etc.views import BaseView\nfrom django.http import HttpResponse\n\nclass MyView(BaseView):\n    def get(self, request):\n        return HttpResponse('Hello')","lang":"python","description":"Basic usage of utility functions and BaseView class."},"warnings":[{"fix":"Use 'from etc import ...' instead of 'from django_etc import ...'","message":"Import as 'etc', not 'django_etc'. Despite the PyPI name being 'django-etc', the top-level Python package is 'etc'. This is a common source of ImportError.","severity":"gotcha","affected_versions":"all"},{"fix":"Import directly: 'from etc import get_unique' instead of 'from etc.utils import get_unique'.","message":"Many utility functions (e.g., get_unique, get_val_from_dict) are directly under 'etc', not in submodules like 'etc.utils' or 'etc.helpers'. Checking documentation or source is required.","severity":"gotcha","affected_versions":"all"},{"fix":"Replace with my_dict.get('key', default).","message":"The function 'get_val_from_dict' is considered legacy; prefer using Python's built-in dict.get() or collections.ChainMap.","severity":"deprecated","affected_versions":">=1.4.0"}],"env_vars":null,"search_vec":"'1.4.0':21 'app':18 'collect':5 'current':19 'django':2,11,27 'django-etc':1 'etc':3 'infrequ':25 'mainten':22 'mode':23 'releas':26 'reusabl':8 'templat':29 'tini':7 'util':9,28 'version':20 'view':30 'warrant':15","created_at":"2026-06-07T12:51:38.828464+00:00","updated_at":"2026-06-07T12:51:38.828464+00:00","problems":null,"ecosystem":"pypi","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/idlesign/django-etc","github":"https://github.com/idlesign/django-etc","docs":null,"changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["devops"],"base_url":null,"auth_type":null,"provenance":{"verified_status":"passing","verified_at":"2026-07-03","last_verified":"2026-07-03","next_check":"2026-08-02","install_tag":null}}