Skip to content

Installation Guide

PyArud requires Python 3.12 or newer and ships with zero external runtime dependencies — both the Python library and the pyarud / arud CLI run purely on the Python standard library.

Install from PyPI

pip install pyarud
uv add pyarud
uvx pyarud scan "قِفَا نَبْكِ مِنْ ذِكْرَى حَبِيبٍ وَمَنْزِلِ ... بِسِقْطِ اللِّوَى بَيْنَ الدَّخُولِ فَحَوْمَلِ"

Verify Installation

Installing PyArud exposes the pyarud Python package along with the pyarud, arud, and python -m pyarud CLI entrypoints:

python -c "import pyarud; print(f'PyArud v{pyarud.__version__} installed successfully!')"
pyarud --version

Agent Skill Included in the Repository

The repository also includes an Open Agent Skill at skills/arud/SKILL.md (excluded from the PyPI wheel to keep runtime installs lean) for AI-assisted Arabic poetry composition and verification.

Development Setup

To run the full test suite, linter, strict type checker, or build this documentation site locally:

git clone https://github.com/cnemri/pyarud.git
cd pyarud

# Install PEP 735 dev and docs dependency groups
uv sync --group dev --group docs
git clone https://github.com/cnemri/pyarud.git
cd pyarud

python3 -m venv .venv
source .venv/bin/activate  # On Windows: .venv\Scripts\activate

pip install -e ".[dev,docs]"

Running Tests, Linting, Type Checks & Docs

uv run pytest
uv run ruff check .
uv run mypy .
uv run mkdocs serve