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, target_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.5.tar.gz
(5.7 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.5-py3-none-any.whl
(18.9 kB
view details)
File details
Details for the file napi-py-0.1.5.tar.gz.
File metadata
- Download URL: napi-py-0.1.5.tar.gz
- Upload date:
- Size: 5.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
909892433674dde38f60051206ecbad520f7b87834c29aca9bd37b6e4ca9cd01
|
|
| MD5 |
ebfa71e34587234264b7fcc24665a00f
|
|
| BLAKE2b-256 |
29f9e37729982583664203cb67bcf47c6c176d94c1b92db49c4987e8fb1f9015
|
File details
Details for the file napi_py-0.1.5-py3-none-any.whl.
File metadata
- Download URL: napi_py-0.1.5-py3-none-any.whl
- Upload date:
- Size: 18.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2220ed7cafbab6ee76084b6067c4499a51eff596ec3db0b8dec9f100cf5328a2
|
|
| MD5 |
0d63c97b99288dae2d0268047f077cc3
|
|
| BLAKE2b-256 |
b437c78d17dcc150851750a5bae390efd1ac6b37b678242529a50ee1b81bf444
|