{"id":17350536,"url":"https://github.com/iranian-github/django-num2fa","last_synced_at":"2025-07-06T01:40:29.207Z","repository":{"id":214958365,"uuid":"737792404","full_name":"iranian-github/django-num2fa","owner":"iranian-github","description":"A set of Django template tags to convert numbers into Persian numbers or words","archived":false,"fork":false,"pushed_at":"2024-01-01T15:28:11.000Z","size":23,"stargazers_count":7,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-04T10:03:23.194Z","etag":null,"topics":["django"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/iranian-github.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"docs/Contributing.md","funding":null,"license":"LICENSE.txt","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}},"created_at":"2024-01-01T14:18:48.000Z","updated_at":"2025-02-02T09:09:54.000Z","dependencies_parsed_at":null,"dependency_job_id":"6a53c56c-120e-495d-8d28-a1e86d69aa7e","html_url":"https://github.com/iranian-github/django-num2fa","commit_stats":null,"previous_names":["codewithemad/django-num2fa","iranian-github/django-num2fa"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/iranian-github/django-num2fa","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iranian-github%2Fdjango-num2fa","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iranian-github%2Fdjango-num2fa/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iranian-github%2Fdjango-num2fa/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iranian-github%2Fdjango-num2fa/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/iranian-github","download_url":"https://codeload.github.com/iranian-github/django-num2fa/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iranian-github%2Fdjango-num2fa/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260927042,"owners_count":23083941,"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"],"created_at":"2024-10-15T17:07:19.832Z","updated_at":"2025-07-06T01:40:29.030Z","avatar_url":"https://github.com/iranian-github.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Django Num2Fa\n\n[![PyPI releases](https://img.shields.io/pypi/v/django-num2fa?logo=python\u0026logoColor=white)](https://pypi.python.org/pypi/django-num2fa)\n[![License](https://img.shields.io/github/license/codewithemad/django-num2fa.svg?style=flat-square)](https://opensource.org/license/agpl-v3/)\n\n`django-num2fa` is a wrapper around [num2fa](https://github.com/codewithemad/num2fa) package which provides a set of filters to convert numbers to Persian numbers and words.\n\n## Installation\n\n```bash\npip install -U django-num2fa\n```\n\nThat's it!\n\n## Usage\n\nFirst, add `django_num2fa` inside your `INSTALLED_APPS`:\n\n```python\nINSTALLED_APPS = [\n    'django.contrib.admin',\n    'django.contrib.auth',\n    'django.contrib.contenttypes',\n    'django.contrib.sessions',\n    'django.contrib.messages',\n    'django.contrib.staticfiles',\n    'django_num2fa',\n    # other packages\n]\n```\n\nload `num2fa` inside your template:\n\n```jinja\n{% load num2fa %}\n```\n\nthen, wherever you have a number in your code template, pipe it with one of the `fa_numbers`, `fa_words`, and `fa_ordinal_words` template filters.\n\n```jinja\n{% load num2fa %}\n\n{{ number | fa_numbers }}\n{{ number | fa_words }}\n{{ number | fa_ordinal_words }}\n```\n\n## Contributing\n\nWe welcome contributions! To learn how you can contribute, please check the [Contributing](https://github.com/codewithemad/django-num2fa/blob/master/docs/Contributing.md) document.\n\n## License\n\nThis work is licensed under the terms of the [GNU Affero General Public License (AGPL)](https://github.com/codewithemad/django-num2fa/blob/master/LICENSE.txt).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Firanian-github%2Fdjango-num2fa","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Firanian-github%2Fdjango-num2fa","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Firanian-github%2Fdjango-num2fa/lists"}