CLI tool for downloading subtitles from napiprojekt.pl
Project description
napi.py 
CLI tool for downloading subtitles from napiprojekt.pl, fork of gabrys/napi.py
prerequisites
- Python 3.6 or 3.7
7zavailable on PATH
installation
sudo pip install napi-pyfor system wide installation
usage as tool
napi-py ~/Downloads/MyMovie.mp4
usage as lib
from napi import NapiPy
movie_path = "~/Downloads/MyMovie.mp4"
napi = NapiPy()
movie_hash = napi.calc_hash(movie_path)
source_encoding, tmp_file = napi.download_subs(movie_hash)
subs_path = napi.move_subs_to_movie(tmp_file, movie_path)
print(subs_path)
development
make configinstallsvenvunder.venv/napi.pymake buildcreates installable packagesmake testruns unit and acceptance tests
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
napi-py-0.1.3.tar.gz
(5.5 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
napi_py-0.1.3-py3-none-any.whl
(18.7 kB
view details)
File details
Details for the file napi-py-0.1.3.tar.gz.
File metadata
- Download URL: napi-py-0.1.3.tar.gz
- Upload date:
- Size: 5.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.7.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
62d704756c53cb5407f78f846e44135017a36a1799abede1e9ec36c6f0cd9714
|
|
| MD5 |
0e2d716668c6a042b868a8597fdba344
|
|
| BLAKE2b-256 |
f6b6500643d3f0564bbbbc03700314bc789c0c5b7f892ba88a5c02d8f2ff47d4
|
File details
Details for the file napi_py-0.1.3-py3-none-any.whl.
File metadata
- Download URL: napi_py-0.1.3-py3-none-any.whl
- Upload date:
- Size: 18.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.7.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f54ca23da453ed4633ec55bb5f394037275b6d59c5ebbcbd1ff955cfbf22cd74
|
|
| MD5 |
b50841c59eed297491fddd88c47614f0
|
|
| BLAKE2b-256 |
513b626a71587243c6920acf8c58b9da31143a7e4c69454d2548cc709929d3a0
|