Skip to main content

Django-pluralize-ru

django-pluralize-ru — это фильтр для Django-шаблонов, который позволяет склонять русские слова после числительных. Этот пакет полезен для корректного отображения числительных в русском языке в шаблонах Django.

Особенности

  • Корректное склонение числительных: Пакет гарантирует правильное склонение русских слов в зависимости от числительных, что важно для правильного отображения текста в интерфейсах и отчетах.
  • Учет особенностей русского языка: Фильтр учитывает все нюансы, связанные с русским языком, такие как правила склонения числительных в зависимости от их последней цифры и исключения для чисел от 11 до 19.

Установка

Чтобы установить пакет, используйте pip или poetry.

Установка с помощью pip:

pip install django-pluralize-ru

Использование

В вашем Django-шаблоне используйте фильтр pluralize_ru для склонения числительных.

Не забудьте про:

{% load pluralize_ru %}

Пример использования в шаблоне:

{{ some_number }} минут{{ some_number|pluralize_ru:"а,ы,т" }} чтения

Metadata

Release files for django-pluralize-ru 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-pluralize-ru 0.1.2
File Size Uploaded Provenance Actions
django_pluralize_ru-0.1.2.tar.gz 2.9 kB Without provenance Details for django_pluralize_ru-0.1.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for django-pluralize-ru 0.1.2
File Interpreter ABI Platform Actions
django_pluralize_ru-0.1.2-py3-none-any.whl Python 3 none any Details for django_pluralize_ru-0.1.2-py3-none-any.whl

Total release size: 6.9 kB

Release files / django_pluralize_ru-0.1.2.tar.gz

Download URL django_pluralize_ru-0.1.2.tar.gz
Size 2.9 kB
Tags Source
SHA-256 checksum
How to use checksums
7eec2910eaed3747fe78e3463b427613549068eca47da1416cfdb1f5f8a79a26
BLAKE2b-256 checksum
How to use checksums
309baad9c43bb30d04ad226f056736321adf26f298a752bfdff81f3c2f28dd26
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.1.1 CPython/3.12.6 Windows/10

Release files / django_pluralize_ru-0.1.2-py3-none-any.whl

Download URL django_pluralize_ru-0.1.2-py3-none-any.whl
Size 4.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e22ce7b52735963cee4c96356b86d48758bbd0d7223dd8b73e358d5d4b4b2793
BLAKE2b-256 checksum
How to use checksums
30f71695908ce9e7c2fc8137a0d0c91e7307851451aa45bf73745f3ffb924485
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.1.1 CPython/3.12.6 Windows/10

Security for django-pluralize-ru 0.1.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page