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.
Release files for palindromus 1.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| palindromus-1.0.3.tar.gz | 6.3 kB | Details |
Release files / palindromus-1.0.3.tar.gz
| Download URL | palindromus-1.0.3.tar.gz |
|---|---|
| Size | 6.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
975d81f09a1fac5beef6523e82c3e19a22eac8c3fa8aa5b0c607e8349ec3e04b
|
|
BLAKE2b-256 checksum How to use checksums |
9939c46de2d4a752ac16f80060cef8f68f72503ea2f2630efdeb06e962e92e2d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |