
Security News
Meet Socket at Black Hat and DEF CON 2025 in Las Vegas
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
Abnum - Alphabetic numerals package including various letter value substitution systems from ancient times to the modern artificial ones
Alphabetic numerals package for Python 3. Module includes various letter value substituting systems from the ancient times to the modern artificial ones.
Abnum substitution system is better known as gematria in hebrew and isopsephy in greek, abjad in arabic alphabet and katapayadi in sanskrit.
Currently supported languages are:
pip install abnum
Get the value of the greek phrase by adding letter values and returning the sum:
from abnum import Abnum, greek
g = Abnum(greek)
print(g.value('ο Λογος')) # 443
Use multiplication instead of addition:
from abnum import Abnum, greek
from operator import mul
g = Abnum(greek)
# use an arithmetic function as the second argument and a start value as the third
print(g.value('ο Λογος', mul, 1)) # 6174000000
Phoenician script:
from abnum import Abnum, phoenician
p = Abnum(phoenician)
a = list(map(g.value, "𐤀𐤍𐤊 𐤕𐤁𐤍𐤕 𐤊𐤄𐤍 𐤏𐤔𐤕𐤓𐤕 𐤌𐤋𐤊 𐤑𐤃𐤍𐤌 𐤁𐤍".split(" ")))
print(a, sum(a))
[71, 852, 75, 1370, 90, 184, 52], 2694
Please see Jupyter notebooks for further study and examples:
Usage of the library. Includes the verification of the isopsephical value of the Bergama stele, 100 - 200 AD.
Isopsephical riddle of the Sibylline verses, Book 1, lines 137 - 146.
Python 2 version of the Abnum library can still be found from: https://github.com/markomanninen/abnum
FAQs
Abnum - Alphabetic numerals package including various letter value substitution systems from ancient times to the modern artificial ones
We found that abnum demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
Security News
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.
Security News
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.