diff options
| author | Val Neekman <val@neekware.com> | 2019-07-27 22:39:01 -0400 |
|---|---|---|
| committer | Val Neekman <val@neekware.com> | 2019-07-27 22:39:01 -0400 |
| commit | b6067d10fc140d30d5d8860f28758e56faa59b4e (patch) | |
| tree | 2a980cf9c460cec9844fc4e739625bb9b2d75bca /slugify | |
| parent | a0cd8fd1608ff63b150bac9c6b32786a00bffc80 (diff) | |
| download | python-slugify-b6067d10fc140d30d5d8860f28758e56faa59b4e.tar.gz | |
update readme, add pydoc
Diffstat (limited to 'slugify')
| -rw-r--r-- | slugify/__init__.py | 2 | ||||
| -rw-r--r-- | slugify/slugify.py | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/slugify/__init__.py b/slugify/__init__.py index 0859113..c351e2e 100644 --- a/slugify/__init__.py +++ b/slugify/__init__.py @@ -3,4 +3,4 @@ from .slugify import * __author__ = 'Val Neekman @ Neekware Inc. [@vneekman]' __description__ = 'A Python slugify application that also handles Unicode' -__version__ = '3.0.2' +__version__ = '3.0.3' diff --git a/slugify/slugify.py b/slugify/slugify.py index fcd1d22..f9bd23d 100644 --- a/slugify/slugify.py +++ b/slugify/slugify.py @@ -80,11 +80,11 @@ def slugify(text, entities=True, decimal=True, hexadecimal=True, max_length=0, w """ Make a slug from the given text. :param text (str): initial text - :param entities (bool): - :param decimal (bool): - :param hexadecimal (bool): + :param entities (bool): converts html entities to unicode (foo & bar -> foo-bar) + :param decimal (bool): converts html decimal to unicode (Ž -> Ž -> z) + :param hexadecimal (bool): converts html hexadecimal to unicode (Ž -> Ž -> z) :param max_length (int): output string length - :param word_boundary (bool): + :param word_boundary (bool): truncates to complete word even if length ends up shorter than max_length :param save_order (bool): if parameter is True and max_length > 0 return whole words in the initial order :param separator (str): separator between words :param stopwords (iterable): words to discount |
