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, 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.

Source Distribution

napi-py-0.1.2.tar.gz (5.3 kB view details)

Uploaded Source

Built Distribution

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

napi_py-0.1.2-py3-none-any.whl (18.5 kB view details)

Uploaded Python 3

File details

Details for the file napi-py-0.1.2.tar.gz.

File metadata

  • Download URL: napi-py-0.1.2.tar.gz
  • Upload date:
  • Size: 5.3 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

Hashes for napi-py-0.1.2.tar.gz
Algorithm Hash digest
SHA256 7f5b1a0a4023403ed4ef89a1992cd25c59021d8976a2be3f11780eb74f17a2fd
MD5 9d4ef1e43aa7bd067e6f69a8c8b9df7e
BLAKE2b-256 3ffaab717e53b49a71485277f2ed55d5af9b7250024ea0f17a30631e5a20a07d

See more details on using hashes here.

File details

Details for the file napi_py-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: napi_py-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 18.5 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

Hashes for napi_py-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b3958936137a406877e1cc6970c13f2df6936c2ec154ab0af6f58c384302f74d
MD5 9243317abdf5fafc79efd631c1f5bd06
BLAKE2b-256 88b89cefa0d05fab1098a92499b0a3d9cae970bd6ea323f2069d5a150cd04460

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