{"id":18928124,"url":"https://github.com/hearthsim/django-intenumfield","last_synced_at":"2025-04-15T14:31:15.499Z","repository":{"id":57420488,"uuid":"74500412","full_name":"HearthSim/django-intenumfield","owner":"HearthSim","description":"An IntEnumField for Django","archived":false,"fork":false,"pushed_at":"2023-07-05T23:28:34.000Z","size":43,"stargazers_count":2,"open_issues_count":2,"forks_count":0,"subscribers_count":8,"default_branch":"main","last_synced_at":"2024-10-06T07:37:50.840Z","etag":null,"topics":["django","enum","enum34","python"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/HearthSim.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-11-22T18:10:04.000Z","updated_at":"2021-12-17T21:06:36.000Z","dependencies_parsed_at":"2022-09-16T09:12:16.827Z","dependency_job_id":null,"html_url":"https://github.com/HearthSim/django-intenumfield","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HearthSim%2Fdjango-intenumfield","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HearthSim%2Fdjango-intenumfield/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HearthSim%2Fdjango-intenumfield/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HearthSim%2Fdjango-intenumfield/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/HearthSim","download_url":"https://codeload.github.com/HearthSim/django-intenumfield/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223674558,"owners_count":17183896,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["django","enum","enum34","python"],"created_at":"2024-11-08T11:23:01.600Z","updated_at":"2025-04-15T14:31:15.494Z","avatar_url":"https://github.com/HearthSim.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Django IntEnumField\n\n[![Build Status](https://api.travis-ci.org/HearthSim/django-intenumfield.svg?branch=master)](https://travis-ci.org/HearthSim/django-intenumfield)\n\nAn IntEnumField for Django.\n\n## Features\n\n* Store your multiple-choice options as a smallint (2 bytes) instead of varchar\n* Reuse existing IntEnums as choice values\n* Integrates well with Django's admin app (display and filter)\n\n## Requirements\n\n* Python 3.8+\n* Django 2.2+\n\n## Usage\n\n```py\nfrom enum import IntEnum\nfrom django.db import models\nfrom django_intenum import IntEnumField\n\n\nclass Status(IntEnum):\n\tUNKNOWN = 0\n\tIN_PROGRESS = 1\n\tCOMPLETED = 2\n\tERROR = 3\n\n\nclass Job(models.Model):\n\tstatus = IntEnumField(enum=Status)\n```\n\n## License\n\nThis project is licensed under the MIT license. The full license text is\navailable in the LICENSE file.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhearthsim%2Fdjango-intenumfield","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhearthsim%2Fdjango-intenumfield","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhearthsim%2Fdjango-intenumfield/lists"}