Skip to main content

CLI tool for downloading subtitles from napiprojekt.pl

Project description

napi.py Build Status

CLI tool for downloading subtitles from napiprojekt.pl, fork of gabrys/napi.py

prerequisites

  • Python 3.6 or 3.7
  • 7z available on PATH

installation

  • sudo pip install napi-py for 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 config installs venv under .venv/napi.py
  • make build creates installable packages
  • make test runs unit and acceptance tests

Project details


Download files

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

Files for napi-py, version 0.1.5
Filename, size File type Python version Upload date Hashes
Filename, size napi_py-0.1.5-py3-none-any.whl (18.9 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size napi-py-0.1.5.tar.gz (5.7 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page