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

installation

  • prerequisites:
    • Python 3.6 or 3.7
    • 7z available on PATH
  • clone repository, enter napi.py directory and run:
    • sudo pip install . 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.1.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.1-py3-none-any.whl (18.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: napi-py-0.1.1.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.4

File hashes

Hashes for napi-py-0.1.1.tar.gz
Algorithm Hash digest
SHA256 01c7793b3393b7b04ad3f2fe4b8e869925762ebac9ef159dd5ee6990a57c0a4c
MD5 d9ddcd02b64f21f85b9d4a619555684f
BLAKE2b-256 f7e670b3d4d56e8ad28a9f2e2f2b149e0a96e23bdbe33717ef0fba288be04cf9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: napi_py-0.1.1-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.4

File hashes

Hashes for napi_py-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3f353b55a4eb6ef63a5b2a8fd254e676e596dd530b66132b3e396a4bdda57ea6
MD5 8f2cbb940d9ded6096f4233902b0af1d
BLAKE2b-256 f7b84c62ef560dd7cceb9780dad825c37ac164150c7100466ef7f4cc2ff2fde4

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