https://github.com/strongbugman/pikpak_cli
pikpak CLI client
https://github.com/strongbugman/pikpak_cli
Last synced: about 1 year ago
JSON representation
pikpak CLI client
- Host: GitHub
- URL: https://github.com/strongbugman/pikpak_cli
- Owner: strongbugman
- License: mit
- Archived: true
- Created: 2023-02-04T06:12:31.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-11-29T06:22:24.000Z (over 2 years ago)
- Last Synced: 2025-03-22T23:05:09.734Z (about 1 year ago)
- Language: Python
- Size: 25.4 KB
- Stars: 10
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
CLI for Pikpak(A web file driver)
# Features
* List all file in a tree
* Download a whole folder
* Download files by file name or size matching
* Download resume(which will create a .part file before finished)
# Install
```shell
pip install -U pikpak_cli
```
# Usage
```
pikpak_cli
Current account: ******
Default download dir: ****
session file: .pikpak.session
try typing help
pikpak_cli>help
login
Login account
usage: login [-h] [--password PASSWORD] account [account ...]
exit
Exit cli
usage: exit [-h]
shell
usage: shell [-h]
ls
List current dir files
usage: ls [-h] [--without_audit] [--trash] [--recursion] name [name ...]
cd
Change directory
usage: cd [-h] name [name ...]
download
Download a file or many files in a directory
usage: download [-h] [--includes INCLUDES] [--excludes EXCLUDES] [--dir DIR] [--size SIZE] [--relative_path] [--new_file_name NEW_FILE_NAME] name [name ...]
pwd
Get current path
usage: pwd [-h]
du
Get files's total size
usage: du [-h] name [name ...]
help
Get help information
usage: help [-h]
config
Set default download dir or
usage: config [-h] [--downlaod_dir DOWNLAOD_DIR]
info
Print session info
usage: info [-h]
rm
usage: rm [-h] [--no_trash] name [name ...]
```
try `help`!
## examples
### ls
```shell
pikpak_cli>ls .
```
try `--recursion`!
### cd
```shell
pikpak_cli>cd Movie
pikpak_cli>pwd
pikpak_cli>/Movie
```
```shell
pikpak_cli>cd ..
pikpak_cli>
```
### download
download files only bigger than 500M to `/mnt` with a flat structure:
```shell
pikpak_cli>download Movie --size 500M --relative_path --dir /mnt
```
download all mp4 or mkv files to default download dir:
```shell
pikpak_cli>download Movie --includes *.mp4,*.mkv
```