The easiest way to install Yarasp is using pip:
pip install yarasp
This project uses uv for dependency management. To install using uv:
# Install uv if you haven't already
curl -LsSf https://astral.sh/uv/install.sh | sh
# Install the package
uv add yarasp
If you want to install from source:
# Clone the repository
git clone https://github.com/pavelsr/yarasp.git
cd yarasp
# Install using uv (recommended)
uv sync
uv pip install -e .
# Or using pip
pip install -e .
After installation, verify that the package is correctly installed:
import yarasp
print(yarasp.__version__)
You should see the version number printed (e.g., 0.1.0).
Yarasp requires the following dependencies:
httpx - HTTP client library (automatically installed)hishel (>=0.1.1,<0.2.0) - HTTP caching library (automatically installed)These are automatically installed when you install Yarasp.
For development and testing:
uv sync --extra dev
This installs:
pytest - Testing frameworkpytest-httpx - HTTP mocking for testsruff - Linter and formattermypy - Static type checkercoverage - Code coverage toolBefore using Yarasp, you need to set up your API key:
export YARASP_API_KEY='your-api-key-here'
Or on Windows:
set YARASP_API_KEY=your-api-key-here
You can get your API key from the Yandex Developer Portal.