Skip to main content

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.

Metadata

Release files for kanp 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for kanp 0.1.0
File Size Uploaded
kanp-0.1.0.tar.gz 8.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for kanp 0.1.0
File Interpreter ABI Platform
kanp-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 22.9 kB

Release files / kanp-0.1.0.tar.gz

Download URL kanp-0.1.0.tar.gz
Size 8.4 kB
Tags Source
SHA-256 checksum
How to use checksums
715a5c75812714399ebcf4512041d10ea26c7d16a74b0bccf42e84a6046de38c
BLAKE2b-256 checksum
How to use checksums
d4f4bae95b3355dfe077400414ddf25be22dd4c74a361c5839f24b2f80e6647f
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / kanp-0.1.0-py3-none-any.whl

Download URL kanp-0.1.0-py3-none-any.whl
Size 14.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2bb49c970cb610ccf3953cce176127fd557ceb1354809b209de99ce2502a8835
BLAKE2b-256 checksum
How to use checksums
4c335264b2b618fe4060283fdfbfb82205cb185ac9f0a0a643da569cdf136d38
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page