Name | django-num2fa JSON |
Version |
1.0.3
JSON |
| download |
home_page | |
Summary | A Django app with filters to convert numbersinto Persian numbers or words. |
upload_time | 2024-01-01 14:52:40 |
maintainer | |
docs_url | None |
author | Emad Rad |
requires_python | >=3.8 |
license | AGPLv3 |
keywords |
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# Django Num2Fa
[![PyPI releases](https://img.shields.io/pypi/v/django-num2fa?logo=python&logoColor=white)](https://pypi.python.org/pypi/django-num2fa)
[![License](https://img.shields.io/github/license/codewithemad/django-num2fa.svg?style=flat-square)](https://opensource.org/license/agpl-v3/)
`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.
## Installation
```bash
pip install -U django-num2fa
```
That's it!
## Usage
First, add `django_num2fa` inside your `INSTALLED_APPS`:
```python
INSTALLED_APPS = [
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'django_num2fa',
# other packages
]
```
load `num2fa` inside your template:
```jinja
{% load num2fa %}
```
then, 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.
```jinja
{% load num2fa %}
{{ number | fa_numbers }}
{{ number | fa_words }}
{{ number | fa_ordinal_words }}
```
## Contributing
We welcome contributions! To learn how you can contribute, please check the [Contributing](https://github.com/codewithemad/django-num2fa/blob/master/docs/Contributing.md) document.
## License
This work is licensed under the terms of the [GNU Affero General Public License (AGPL)](https://github.com/codewithemad/django-num2fa/blob/master/LICENSE.txt).
Raw data
{
"_id": null,
"home_page": "",
"name": "django-num2fa",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.8",
"maintainer_email": "",
"keywords": "",
"author": "Emad Rad",
"author_email": "codewithemad@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/15/85/3b3f99ef37b5bf2feb205dac30ace21b993f990cd07e4f4b44d499a365e2/django-num2fa-1.0.3.tar.gz",
"platform": null,
"description": "# Django Num2Fa\n\n[![PyPI releases](https://img.shields.io/pypi/v/django-num2fa?logo=python&logoColor=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",
"bugtrack_url": null,
"license": "AGPLv3",
"summary": "A Django app with filters to convert numbersinto Persian numbers or words.",
"version": "1.0.3",
"project_urls": {
"Code": "https://github.com/codewithemad/django-num2fa",
"Issue tracker": "https://github.com/codewithemad/django-num2fa/issues"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "15853b3f99ef37b5bf2feb205dac30ace21b993f990cd07e4f4b44d499a365e2",
"md5": "e541e8f9710ffff376835b34bc1add0f",
"sha256": "614a1f700e0787a0a80593d422705f1fe3f4785f1b3e94606a0cd534e37f64d6"
},
"downloads": -1,
"filename": "django-num2fa-1.0.3.tar.gz",
"has_sig": false,
"md5_digest": "e541e8f9710ffff376835b34bc1add0f",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8",
"size": 15815,
"upload_time": "2024-01-01T14:52:40",
"upload_time_iso_8601": "2024-01-01T14:52:40.401457Z",
"url": "https://files.pythonhosted.org/packages/15/85/3b3f99ef37b5bf2feb205dac30ace21b993f990cd07e4f4b44d499a365e2/django-num2fa-1.0.3.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-01-01 14:52:40",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "codewithemad",
"github_project": "django-num2fa",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"tox": true,
"lcname": "django-num2fa"
}