Package palindromus helps you to check that any string, word or text are palindrome
Project description
Palindromus documentation
Overwiew
Package helps you to check that any string, word or text are palindrome.
Checking
Check any strings:
from palindromus import * somestr = """Ðой и веÑа - ÑÐ°Ð½Ñ Ñ Ð¡Ð¸Ð¾Ð½Ð° но ÐÑÑÑ Ð½Ð° ÑаÑе - Ðийон""" r = check(somestr) print(r) # True
Check any words:
from palindromus import * someword = "ÑопоÑ" r = check(someword, check = WORD) print(r) # True
Check any multiline palindrome:
from palindromus import * somemultiline = """Ðд - жажда! Ðд - жаÑ, вÑажда! Ðд Ð³Ð¾Ð½Ð¸Ñ Ð¸Ð½Ð¾Ð³Ð´Ð°.""" r = check(somemultiline, check = MULTILINE) print(r) # True
Check any text:
from palindromus import * sometext = """Я нем и Ñад Ñ, Ñак, ÑÑамвай, ÑнваÑÑ ÑавнÑй, а в маÑÑ ÐºÐ°ÑÑ, даÑи менÑ.""" r = check(sometext, check = TEXT) print(r) # True
Check any superpalindrome:
from palindromus import * sometext = "Nora. Omar. Ramo. Aron" r = check(sometext, check = SUPER) print(r) # True
Global settings
You can use global variablies STRING, WORD, TEXT, MULTILINE, SUPER for checking any your strings as string, word, text, multiline palindrome or superpalindrome.
You can use dictionaries of interchangeable letters (ALL, RUSSIAN, LATIN) for interchange.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
palindromus-1.0.3.tar.gz
(6.3 kB
view hashes)