pkgu
v0.0.28
PIP 도구에서 설치 한 오래된 패키지를 찾아 업데이트하십시오. Depu (Go)에서 영감을 얻었습니다. 그러나 pkgu 전체 및 부분 업데이트를 지원하며 이는보다 편리하고 유연합니다. 또한 크로스 플랫폼 (Windows, Linux, MacOS)도 지원합니다. ? 처음으로 데이터를 더 빨리 검색하거나 명령을 다시 실행할 필요가 없음) SQLITE를 캐시 DB로 사용하여 데이터를 저장하고 DB에서 빠르게 읽고 콘솔에 제시 할 수 있습니다.
그러나 현재 Python3.10 이상 만 사용할 수 있습니다.
먼저 종속성을 설치해야합니다.
poetry 도구가 없으면 먼저 설치하십시오. ? :시 설치, 그렇지 않으면 패키지를 직접 설치하십시오.
poetry install 그런 다음 pkgu.py 스크립트를 실행하십시오.
python3 pkgu.pypip3 install pkgu 설치가 완료되면 pkgu 실행 파일은 Python bin 디렉토리에 기록되며 터미널에 pkgu -h 명령을 입력하여 사용 방법을 배울 수 있습니다.
# Usage
usage: pkgu [-h] [-v] {update,remove} ...
Upgrade and uninstall python package.
options:
-h, --help show this help message and exit
-v, --version Display pkgu version and information
Available commands:
{update,remove} Available commands
update Update python package.
remove remove python package with its dependencies.
# ------ update ------
options:
-h, --help show this help message and exit
-a, --async_upgrade Update the library asynchronously. Default: False
-d CACHE_FOLDER, --cache_folder CACHE_FOLDER
The cache.db file. Default: ~ /.cache/cache.db
-e EXPIRE_TIME, --expire_time EXPIRE_TIME
The expiration time. Default: 43200
--no-cache Whether to use db cache. Default: False
# ------ remove ------
options:
-h, --help show this help message and exit
-l, --list list unused dependencies, but don ' t uninstall them.
-L, --leaves list leaves (packages which are not used by any others).
-y, --yes don ' t ask for confirmation of uninstall deletions.
-f, --freeze list leaves (packages which are not used by any others) in requirements.txt format
- 패키지를 업그레이드 할 필요가 없습니다.
- 만료 된 패키지를 업그레이드하십시오.
- PKG를 동시에 업데이트하십시오
- PKG를 비동기로 업데이트하십시오
비동기 방법이 동기화 방법보다 약 9 초 (이 테스트 상황에서만)보다 빠릅니다. 이제 파이썬 라이브러리를 비동기로 업데이트하는 것이 좋습니다. ?
- 선택 가능한 업데이트 패키지 지원
- SQLITE DB 파일에서 캐시 결과를 사용하도록 지원합니다.
이로 인해 수집하기가 엄청나게 오래된 패키지를 나열하는 방법이 향상되고 캐시 사용 여부를 제어 할 CLI 플래그 --no-cache 도 있습니다.
- !!! 새 - 종속성으로 패키지를 제거하는 지원.