Re-organize directory structure (#4971)

See discussion in #2491

Co-authored-by: Ivan Levkivskyi <ilevkivskyi@dropbox.com>
This commit is contained in:
Ivan Levkivskyi
2021-01-27 12:00:39 +00:00
committed by GitHub
parent 869238e587
commit 16ae4c6120
1399 changed files with 601 additions and 97 deletions

View File

@@ -0,0 +1,2 @@
version = "0.1"
python2 = true

View File

@@ -0,0 +1,2 @@
from .slugify import *
from .special import *

View File

@@ -0,0 +1,19 @@
from typing import Iterable, Optional
def smart_truncate(
string: str, max_length: int = ..., word_boundary: bool = ..., separator: str = ..., save_order: bool = ...
) -> str: ...
def slugify(
text: str,
entities: bool = ...,
decimal: bool = ...,
hexadecimal: bool = ...,
max_length: int = ...,
word_boundary: bool = ...,
separator: str = ...,
save_order: bool = ...,
stopwords: Iterable[str] = ...,
regex_pattern: Optional[str] = ...,
lowercase: bool = ...,
replacements: Iterable[str] = ...,
) -> str: ...

View File

@@ -0,0 +1,8 @@
from typing import Sequence, Tuple
def add_uppercase_char(char_list: Sequence[Tuple[str, str]]) -> Sequence[Tuple[str, str]]: ...
CYRILLIC: Sequence[Tuple[str, str]]
GERMAN: Sequence[Tuple[str, str]]
GREEK: Sequence[Tuple[str, str]]
PRE_TRANSLATIONS: Sequence[Tuple[str, str]]