# Python Mirror (PyPI registry, pip) in Iran

Canonical: https://mirror.rasanegaar.com/guides/en/pypi.html
Language: en

Python mirror and PyPI registry for pip, virtualenv and poetry from Iran — mirror.rasanegaar.com/pypi/

Python mirror (PyPI registry, pip) — For Python package installs in Iran, Rasanegaar Mirror keeps the PyPI index close to your projects and CI.

## About

PyPI is the official Python package index — almost every data and web project depends on `pip install`. Wheels from pypi.org can be slow or flaky.
A local index shortens dependency installs in CI and on laptops; every package download moves real traffic.

## Mirror in Iran

The PyPI mirror in Iran at `mirror.rasanegaar.com/pypi` plays that local index role so pip pulls from Rasanegaar’s software repository.
See also the landing page at `/repos/pypi/`.

Browse URL: https://mirror.rasanegaar.com/pypi/

## Configuration

1. Set pip index-url to the Rasanegaar PyPI mirror:
   ```
   pip.conf
   ```
   ```
   https://mirror.rasanegaar.com/pypi/simple
   ```
2. Or set the environment variable:
   ```
   PIP_INDEX_URL=https://mirror.rasanegaar.com/pypi/simple
   ```
3. Try a test install:
   ```
   pip install requests
   ```

## Updates

Python package installs and upgrades in Iran via the local mirror show up in CI and on laptops — when pypi.org answers slowly.
After switching, do not change pins; only the download origin changes.

## Related

Registry landing: https://mirror.rasanegaar.com/repos/pypi/en/
Guide HTML: https://mirror.rasanegaar.com/guides/en/pypi.html
