Installation¶
arapy needs Python 3.12 or newer. The core has no dependencies.
Optional extras¶
Two features need third-party packages. They are imported only when you use them.
| Extra | Installs | Needed for |
|---|---|---|
hijri |
hijridate |
HijriDate and ArDate.to_hijri() |
shape |
arabic-reshaper, python-bidi |
shape() and reshape_only() |
Without the extra, the call raises MissingExtraError, which names the command to run:
arapy.errors.MissingExtraError: This feature needs the 'hijri' extra.
Install it with: `pip install "arapy[hijri]"` or `uv add arapy[hijri]`
MissingExtraError is also an ImportError, so except ImportError catches it.