PyPI — pip،‏ uv و Poetry

بسته‌های پایتون برای pip،‏ uv و Poetry از طریق Simple API.

منبع اصلی: pypi.orgدر حال بررسی…

نشانی‌ها

  • Simple indexhttps://pkg.shecan.ir/pypi/simple/

استفادهٔ موقت با pip

نصب یک بسته فقط برای همین دستورShell
pip install --index-url https://pkg.shecan.ir/pypi/simple/ humanize

تنظیم دائمی pip

تنظیم برای کاربر فعلی (لینوکس،‏ macOS و ویندوز)Shell
pip config set global.index-url https://pkg.shecan.ir/pypi/simple/
یا با فایل پیکربندی — لینوکس ~/.config/pip/pip.conf،‏ ویندوز %APPDATA%\pip\pip.ini~/.config/pip/pip.confINI
[global]
index-url = https://pkg.shecan.ir/pypi/simple/
متغیر محیطی برای نشست فعلی ترمینال،‏ مناسب CI و DockerfileShell
export PIP_INDEX_URL=https://pkg.shecan.ir/pypi/simple/

uv

متغیر محیطی برای همهٔ دستورهای uvShell
export UV_DEFAULT_INDEX=https://pkg.shecan.ir/pypi/simple/
استفادهٔ موقتShell
uv pip install --system --index-url https://pkg.shecan.ir/pypi/simple/ humanize
برای یک پروژه — به pyproject.toml اضافه کنیدpyproject.tomlTOML
[[tool.uv.index]]
url = "https://pkg.shecan.ir/pypi/simple/"
default = true

Poetry

افزودن میرور به عنوان منبع اصلی پروژه — داخل پوشهٔ پروژه اجرا کنیدShell
poetry source add --priority=primary shecan https://pkg.shecan.ir/pypi/simple/

نکته‌ها و محدودیت‌ها

  • فقط Simple API (PEP 503 و PEP 691) ارائه می‌شود؛ جست‌وجو،‏ JSON API و بارگذاری بسته (twine) در دسترس نیست.
  • نصب با هش (--require-hashes) و فراداده‌های PEP 658 پشتیبانی می‌شود.

بازگشت به فهرست میرورها