Skip to main content

Palindromus documentation

See at https://palindromus.readthedocs.io

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)

Source distribution for palindromus 1.0.3
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

Release history Release notifications | RSS feed

This release

1.0.3 This release

1 release file

1.0.2

1 release file

1.0.1

1 release file

1.0.0

1 release file

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