Skip to main content

See video with downloading by multithread

Project description

Kanp

pypi docker license workflows workflows

中文文档

Introduction

See video with downloading by multithread.

Install

> pip install kanp

Usage

Usage: kanp [OPTIONS] COMMAND [ARGS]...

Options:
  -V, --version  Show the version and exit.
  -h, --help     Show this message and exit.

Commands:
  serve  Serve video server.
  watch  Open video server url with webbrowser.

Serve video server

Usage: kanp serve [OPTIONS]

  Serve video server.

Options:
  --host TEXT         Video server host.  [default: 0.0.0.0]
  -p, --port INTEGER  Video server port.  [default: 8000]
  -h, --help          Show this message and exit.
> kanp serve

Or run with docker:

> docker run -d -p 8000:8000 long2ice/kanp

And you will see:

INFO:     Started server process [41254]
INFO:     Waiting for application startup.
INFO:     Application startup complete.
INFO:     Uvicorn running on http://0.0.0.0:8000 (Press CTRL+C to quit)
CINFO:     Shutting down
INFO:     Waiting for application shutdown.
INFO:     Application shutdown complete.
INFO:     Finished server process [41254]

Watch video by web browser

Usage: kanp watch [OPTIONS]

  Open video server url with webbrowser.

Options:
  -s, --server TEXT  [default: http://127.0.0.1:8000]
  -u, --url TEXT     Video url or site url support by youtube-dl.  [required]
  -y, --youtube-dl   Get real video url by youtube-dl.  [default: False]
  -h, --help         Show this message and exit.
> kanp watch -u 'https://www.youtube.com/watch?v=WLVuUTUbhkw' -y

Will open browser automatically and play video.

Just enjoy it with huge speed!

License

This project is licensed under the Apache-2.0 License.

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

kanp-0.1.0.tar.gz (8.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

kanp-0.1.0-py3-none-any.whl (14.5 kB view details)

Uploaded Python 3

File details

Details for the file kanp-0.1.0.tar.gz.

File metadata

  • Download URL: kanp-0.1.0.tar.gz
  • Upload date:
  • Size: 8.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.0.0 requests-toolbelt/0.8.0 tqdm/4.45.0 CPython/3.8.3

File hashes

Hashes for kanp-0.1.0.tar.gz
Algorithm Hash digest
SHA256 715a5c75812714399ebcf4512041d10ea26c7d16a74b0bccf42e84a6046de38c
MD5 02b6566209163e42a758948291b54431
BLAKE2b-256 d4f4bae95b3355dfe077400414ddf25be22dd4c74a361c5839f24b2f80e6647f

See more details on using hashes here.

File details

Details for the file kanp-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: kanp-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 14.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.0.0 requests-toolbelt/0.8.0 tqdm/4.45.0 CPython/3.8.3

File hashes

Hashes for kanp-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2bb49c970cb610ccf3953cce176127fd557ceb1354809b209de99ce2502a8835
MD5 311585972696ccf24796edde1bdeb223
BLAKE2b-256 4c335264b2b618fe4060283fdfbfb82205cb185ac9f0a0a643da569cdf136d38

See more details on using hashes here.

Supported by

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