Skip to main content

A pikpak command line client

Project description

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

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

pikpak_cli>ls .

try --recursion!

cd

pikpak_cli>cd Movie
pikpak_cli>pwd
pikpak_cli>/Movie
pikpak_cli>cd ..
pikpak_cli>

download

download files only bigger than 500M to /mnt with a flat structure:

pikpak_cli>download Movie --size 500M --relative_path --dir /mnt

download all mp4 or mkv files to default download dir:

pikpak_cli>download Movie --includes *.mp4,*.mkv

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pikpak_cli-0.1.0.tar.gz (9.3 kB view hashes)

Uploaded Source

Built Distribution

pikpak_cli-0.1.0-py3-none-any.whl (9.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page