파이썬 패키지 매니저인 Pip에서 더이상 search 서브커맨드를 지원하지 않기 때문에 특정 패키지에 대한 조회가 필요할 경우 일일이 PyPI 공식 웹사이트에 접근해야하는 불편함이 있었다. 그런데 pypi-search 패키지를 통해 더이상 그런 수고스러움을 덜 수 있게 되었다.
아래는 pypi-search 패키지를 설치 후 특정 패키지에 대한 조회 결과이다.
# pypi-search 패키지 설치
pip install pypi-search
Collecting pypi-search
Downloading pypi_search-2.0-py3-none-any.whl (7.1 kB)
Collecting html2text>=2020.1.16
Downloading html2text-2024.2.26.tar.gz (56 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 56.5/56.5 kB 1.4 MB/s eta 0:00:00
Preparing metadata (setup.py) ... done
Collecting requests>=2.22.0
Downloading requests-2.31.0-py3-none-any.whl (62 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 62.6/62.6 kB 3.5 MB/s eta 0:00:00
Collecting beautifulsoup4>=4.9.2
Downloading beautifulsoup4-4.12.3-py3-none-any.whl (147 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 147.9/147.9 kB 8.6 MB/s eta 0:00:00
Collecting soupsieve>1.2
Downloading soupsieve-2.5-py3-none-any.whl (36 kB)
Collecting idna<4,>=2.5
Downloading idna-3.7-py3-none-any.whl (66 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 66.8/66.8 kB ? eta 0:00:00
Collecting charset-normalizer<4,>=2
Downloading charset_normalizer-3.3.2-cp39-cp39-win_amd64.whl (100 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 100.4/100.4 kB ? eta 0:00:00
Collecting certifi>=2017.4.17
Downloading certifi-2024.2.2-py3-none-any.whl (163 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 163.8/163.8 kB ? eta 0:00:00
Collecting urllib3<3,>=1.21.1
Downloading urllib3-2.2.1-py3-none-any.whl (121 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 121.1/121.1 kB ? eta 0:00:00
Installing collected packages: urllib3, soupsieve, idna, html2text, charset-normalizer, certifi, requests, beautifulsoup4, pypi-search
DEPRECATION: html2text is being installed using the legacy 'setup.py install' method, because it does not have a 'pyproject.toml' and the 'wheel' package is not installed. pip 23.1 will
enforce this behaviour change. A possible replacement is to enable the '--use-pep517' option.
Discussion can be found at https://github.com/pypa/pip/issues/8559
Running setup.py install for html2text ... done
Successfully installed beautifulsoup4-4.12.3 certifi-2024.2.2 charset-normalizer-3.3.2 html2text-2024.2.26 idna-3.7 pypi-search-2.0 requests-2.31.0 soupsieve-2.5 urllib3-2.2.1
[notice] A new release of pip is available: 23.0.1 -> 24.0
[notice] To update, run: python.exe -m pip install --upgrade pip
# pypi-search 패키지를 활용한 특정 패키지 정보 조회
python -m pypi_search -d numpy
[INFO] :: Searching for package `numpy`...
numpy:
- Fundamental package for array computing in Python
Version Information:
- version number: 1.26.4
- release date : Feb 5, 2024
Project Links:
- charlesr.harris: /user/charlesr.harris/
- matthew.brett: /user/matthew.brett/
- mattip: /user/mattip/
- rgommers: /user/rgommers/
- teoliphant: /user/teoliphant/
Github Stats:
- stars: 26374
- forks: 9305
- issues: 2121
Meta Information:
- license: BSD License (Copyright (c) 2005-2023, NumPy Developers. All rights reserved. Redistribution and use in source an...)
- author:
name: Travis E. Oliphant et al.
email: None
- maintainer: NumPy Developers
- requires: Python >=3.9
* 참고 URL
반응형
'IT > Programming' 카테고리의 다른 글
[Python] CLI 인터프리터 환경 Tab/자동 완성 (0) | 2024.04.14 |
---|---|
[Python] sorted 함수, sort 메서드 정렬 시 key 함수 활용 용례 (0) | 2024.04.12 |
[Python] Docstring 정보 출력 (0) | 2024.04.10 |
[Python] Dunder Method (0) | 2024.04.09 |
[Python] Dictionary의 값이 List 타입일 때 Append 메서드 용례 (0) | 2024.04.09 |