{"id":15483027,"url":"https://github.com/chayandatta/django_indian_cities","last_synced_at":"2025-06-25T00:36:19.804Z","repository":{"id":62570902,"uuid":"289890506","full_name":"chayandatta/django_indian_cities","owner":"chayandatta","description":"Simple Django states \u0026 cities for India","archived":false,"fork":false,"pushed_at":"2023-08-22T08:38:33.000Z","size":66,"stargazers_count":5,"open_issues_count":1,"forks_count":5,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-25T02:47:39.545Z","etag":null,"topics":["django","django-cities","pypi-package","python","python-library","python-module","python3"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/indian-cities/","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/chayandatta.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2020-08-24T09:55:01.000Z","updated_at":"2025-01-26T03:11:32.000Z","dependencies_parsed_at":"2025-04-22T16:42:28.103Z","dependency_job_id":"80b2f596-09a2-4dc8-8581-c0b03da18b83","html_url":"https://github.com/chayandatta/django_indian_cities","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/chayandatta/django_indian_cities","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chayandatta%2Fdjango_indian_cities","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chayandatta%2Fdjango_indian_cities/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chayandatta%2Fdjango_indian_cities/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chayandatta%2Fdjango_indian_cities/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chayandatta","download_url":"https://codeload.github.com/chayandatta/django_indian_cities/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chayandatta%2Fdjango_indian_cities/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261782606,"owners_count":23208905,"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","django-cities","pypi-package","python","python-library","python-module","python3"],"created_at":"2024-10-02T05:10:35.477Z","updated_at":"2025-06-25T00:36:19.761Z","avatar_url":"https://github.com/chayandatta.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![PyPI version](https://badge.fury.io/py/indian-cities.svg)](https://badge.fury.io/py/indian-cities)\n![PyPI - License](https://img.shields.io/pypi/l/indian-cities)\n[![Downloads](https://static.pepy.tech/badge/indian-cities)](https://pepy.tech/project/indian-cities)\n[![Downloads](https://static.pepy.tech/badge/indian-cities/month)](https://pepy.tech/project/indian-cities)\n[![CodeFactor](https://www.codefactor.io/repository/github/chayandatta/django_indian_cities/badge)](https://www.codefactor.io/repository/github/chayandatta/django_indian_cities)\n\n# indian-cities  -- states \u0026 cities for india 🇮🇳\n\n## Why?\n\nIf there was something plug 🔌 and play\nwhich can be just imported and it'll fill the choices fields with Indian cities or states.\nHow good it'll be.\n\n\n## How to use this\n\n\u003e To import just add this line\n\n```\nfrom indian_cities.dj_city import cities\n```\n\u003e Test it\n\n```\nprint(cities[0])\n```\nNow if the output looks like this\n```\n('Andaman and Nicobar Islands', (('Port Blair', 'Port Blair'),))\n```\nThen awesome, it did work 👍\n```\nclass myModel(models.Model):\n\n    city = models.CharField(choices=cities, null=False, max_length=20)\n\n```\n\n### Requirements:\n\nAny version of Python, Django\n\n## Installation\n\nTo install this\n\n\u003e pip install indian-cities\n\n---\n## Connect with me:\n\nLinkedIn: https://www.linkedin.com/in/chayandatta/\n\ngithub: https://github.com/chayandatta\n\n---\n\nmade with ❤️ and 🐍\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchayandatta%2Fdjango_indian_cities","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchayandatta%2Fdjango_indian_cities","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchayandatta%2Fdjango_indian_cities/lists"}