Skip to main content

Mesopotamian Calculator and Metrology Tools

Project description

🏺 MesoMath v2.0.0rc1

The Definitive Mesopotamian Metrology & Arithmetic Engine for Python.

PyPI version Documentation Status Binder

MesoMath is a high-precision computational framework designed for epigraphists, historians, and mathematicians working with Sumerian and Babylonian sexagesimal systems.

From the Old Babylonian period (Nippur) to Late Babylonian administrative records, MesoMath bridges the gap between ancient clay tablets and modern data science.


✨ What's New in v2.0.0?

This update transforms MesoMath from a set of utilities into a fully integrated Metrological Ecosystem.

  • 🧮 Dimensional Awareness: Perform complex calculations like Surface / Length = Length or Volume / Surface = Height directly with metrological objects.
  • 🛠️ Versatile Integrated Design of Metrological Lists and Tables: from the simplest to the most complex compatible with the scribal tradition.
  • 🔍 Integrated Lookup: The new MesoM.lookup() method allows for reverse metrological searches—identify physical measures from abstract sexagesimal values.
  • 🔄 Bidirectional Conversion between SI values and OBP metrology.
  • 📜 Epigraphic Engine: Native support for professional transliteration and Unicode Cuneiform rendering.
  • 🏗️ Construction Metrology: Dedicated support for Brick Metrology (Bbri) and labor/ration logistics.
  • 🛠️ Unified CLI: Access all features from the enhanced babcalc REPL.

🚀 Quick Start

Installation

pip install mesomath==2.0.0rc1

Basic Interaction

from mesomath.npvs import Blen, Bsur

# Dimensional arithmetic
width = Blen('3 ninda')
area = Bsur('1 sar')

# The new division engine
length = area / width
print(length.prtf())  # Output: '1/3 ninda'

Cuneiform & Transliteration

from mesomath.npvs import Bcap

vol = Bcap('3 bariga 2 ban')
print(vol.translit)     # Output: '3(barig) 2(ban2) še'
print(vol.cuneiform())  # Output: 𒑗 𒑐 𒊺

📚 Documentation & Research

The full documentation is available at ReadTheDocs.

Note: We are currently updating the documentation to reflect the 2.0.0 changes. If you find any discrepancies, please check our Issue Tracker.


🏛️ Acknowledgments

MesoMath's metrological logic is based on the seminal work of Christine Proust (e.g., Tablettes mathématiques de Nippur, 2007) and the standard Babylonian metrological lists.


Developed with 🖋️ and 🏺 by jccsvq

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

mesomath-2.0.0rc2.tar.gz (162.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mesomath-2.0.0rc2-py3-none-any.whl (69.2 kB view details)

Uploaded Python 3

File details

Details for the file mesomath-2.0.0rc2.tar.gz.

File metadata

  • Download URL: mesomath-2.0.0rc2.tar.gz
  • Upload date:
  • Size: 162.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Hatch/1.16.1 cpython/3.11.2 HTTPX/0.28.1

File hashes

Hashes for mesomath-2.0.0rc2.tar.gz
Algorithm Hash digest
SHA256 31b14185b3af51a0bb6305ad43aa5c184af28187c8614d401b99a8a229884167
MD5 d9d36be1021e30d9cfc814f4de4492da
BLAKE2b-256 574b1e99358f4a0860f2e82626bb21d5f7c99ab3d669be4c5150459dd5748f63

See more details on using hashes here.

File details

Details for the file mesomath-2.0.0rc2-py3-none-any.whl.

File metadata

  • Download URL: mesomath-2.0.0rc2-py3-none-any.whl
  • Upload date:
  • Size: 69.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Hatch/1.16.1 cpython/3.11.2 HTTPX/0.28.1

File hashes

Hashes for mesomath-2.0.0rc2-py3-none-any.whl
Algorithm Hash digest
SHA256 e5a8bda94fbc5ae76f65cf76cf28d14577fd5949ab9969178041b4f1426e7e64
MD5 9ac96b4cc00a30a2fe158e60659a4a70
BLAKE2b-256 3ca90d8deeba9330092b9e8ac7e2dd82f309bfb8798631647a6d831d98dbae08

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page