{"categories":[{"label":"Database","url":"https://skillfed.io/packages/category/database/4"}],"enrichment":{"capability":"Provides a Django model field that obfuscates integer IDs using the Hashids library, storing integers in the database while exposing them as encoded strings.","skillfed_tags":["retired","django-orm"],"use_cases":["Replace sequential integer IDs in URLs with obfuscated strings to avoid exposing database size or ID patterns","Add hashid-based primary keys to new Django models while maintaining integer storage for performance","Migrate existing AutoField models to hashid equivalents while optionally allowing integer lookups during transition","Prefix hashids with custom strings (e.g., 'user_h6ks82g') for human-readable, type-hinted API identifiers"],"what_it_does":"Django-hashid-field is a custom Django model field that replaces integer primary keys or regular integer fields with hashid-encoded equivalents. It stores the actual integer in the database but exposes it as an obfuscated string (e.g., 'OwLxW8D' instead of 123), making IDs less predictable in URLs and APIs. The field supports filtering, lookups, and sorting by either the hashid string or the underlying integer, and can be dropped into existing models as a replacement for AutoField or IntegerField.\n\nThe package is built on top of the hashids library and integrates with Django's ORM, REST Framework, and admin interface. It supports per-field configuration of salt, alphabet, and prefix, as well as global settings. However, the package is now retired and explicitly marked as no longer recommended for new projects\u2014the maintainer recommends migrating to alternatives.","worth_installing":"No\u2014not for new projects. The package is officially retired and the maintainer explicitly recommends against it. Existing projects using it do not require immediate changes, but should plan migration to an actively maintained alternative. The low install friction and permissive license do not offset the dormant maintenance status and explicit retirement notice."},"id":"django-hashid-field","links":{"html":"https://skillfed.io/packages/django-hashid-field","md":"https://skillfed.io/packages/django-hashid-field.md","pypi":"https://pypi.org/project/django-hashid-field/"},"maintenance":{"status":"dormant"},"meta":{"latest_release":"2024-05-03","license_spdx":null,"license_treatment":"permissive","name":"django-hashid-field","python_support":"unspecified","summary":"A Hashids obfuscated Django Model Field"},"popularity":{"monthly_downloads":190549,"position":9906,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"3.4.1"}
