vtt-to-srt2


Namevtt-to-srt2 JSON
Version 0.2.0.3 PyPI version JSON
download
home_pagehttps://github.com/jsonzilla/vtt_to_srt2
Summaryvtt to srt subtitles converter package
upload_time2024-07-23 21:55:31
maintainerJeison Cardoso
docs_urlNone
authorJeison Cardoso
requires_pythonNone
licenseNone
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # vtt_to_srt2
Convert vtt files to srt subtitle format
> For Python 2.x [you can get version for Python 3.x here](https://github.com/jsonzilla/vtt_to_srt3)

## Docs
[https://jsonzilla.github.io/vtt_to_srt2/](https://jsonzilla.github.io/vtt_to_srt2/)


## Installation
```shell
pip install vtt_to_srt2
```

```cmd
python -m pip install vtt_to_srt2
```

## Usage from terminal

```shell
usage: vtt_to_srt [-h] [-r] [-e ENCODING] pathname

Convert vtt files to srt files

positional arguments:
  pathname              a file or directory with files to be converted

options:
  -h, --help            show this help message and exit
  -r, --recursive       walk path recursively
  -e ENCODING, --encoding ENCODING
                        encoding format for input and output files
```

## Usage as a lib

Convert vtt file
```python
from vtt_to_srt.vtt_to_srt import ConvertFile

convert_file = ConvertFile("input_utf8.vtt", "utf-8")
convert_file.convert()
```

Recursively convert all vtt files in directory
```python
from vtt_to_srt.vtt_to_srt import ConvertDirectories

recursive = False
convert_file = ConvertDirectories(".", recursive, "utf-8")
convert_file.convert()
```

## Manual build

Generate wheel
```shell
python -m pip install --upgrade setuptools wheel build
python -m build
```

## Generate documentation

Generate documentation
```shell
python -m pip install pdoc3
pdoc --html vtt_to_srt/vtt_to_srt.py -o docs
mv docs/vtt_to_srt.html docs/index.html
rm -rm docs/vtt_to_srt
```

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/jsonzilla/vtt_to_srt2",
    "name": "vtt-to-srt2",
    "maintainer": "Jeison Cardoso",
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": null,
    "author": "Jeison Cardoso",
    "author_email": "j@jsonzilla.com",
    "download_url": "https://files.pythonhosted.org/packages/eb/3c/a4d67b37976d978a5054fd48b165a9a9a99f892f99dc3cd756a118bc991d/vtt_to_srt2-0.2.0.3.tar.gz",
    "platform": null,
    "description": "# vtt_to_srt2\nConvert vtt files to srt subtitle format\n> For Python 2.x [you can get version for Python 3.x here](https://github.com/jsonzilla/vtt_to_srt3)\n\n## Docs\n[https://jsonzilla.github.io/vtt_to_srt2/](https://jsonzilla.github.io/vtt_to_srt2/)\n\n\n## Installation\n```shell\npip install vtt_to_srt2\n```\n\n```cmd\npython -m pip install vtt_to_srt2\n```\n\n## Usage from terminal\n\n```shell\nusage: vtt_to_srt [-h] [-r] [-e ENCODING] pathname\n\nConvert vtt files to srt files\n\npositional arguments:\n  pathname              a file or directory with files to be converted\n\noptions:\n  -h, --help            show this help message and exit\n  -r, --recursive       walk path recursively\n  -e ENCODING, --encoding ENCODING\n                        encoding format for input and output files\n```\n\n## Usage as a lib\n\nConvert vtt file\n```python\nfrom vtt_to_srt.vtt_to_srt import ConvertFile\n\nconvert_file = ConvertFile(\"input_utf8.vtt\", \"utf-8\")\nconvert_file.convert()\n```\n\nRecursively convert all vtt files in directory\n```python\nfrom vtt_to_srt.vtt_to_srt import ConvertDirectories\n\nrecursive = False\nconvert_file = ConvertDirectories(\".\", recursive, \"utf-8\")\nconvert_file.convert()\n```\n\n## Manual build\n\nGenerate wheel\n```shell\npython -m pip install --upgrade setuptools wheel build\npython -m build\n```\n\n## Generate documentation\n\nGenerate documentation\n```shell\npython -m pip install pdoc3\npdoc --html vtt_to_srt/vtt_to_srt.py -o docs\nmv docs/vtt_to_srt.html docs/index.html\nrm -rm docs/vtt_to_srt\n```\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "vtt to srt subtitles converter package",
    "version": "0.2.0.3",
    "project_urls": {
        "Homepage": "https://github.com/jsonzilla/vtt_to_srt2"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "a1fa7e771c563c7efdb8d1d31a5612110ef832fabe332ad89676baca0f6a4211",
                "md5": "ecd06b004935db4026350a0330b83005",
                "sha256": "9ebf5c8d97f2db9e2b0c089bc1ee64c004832413c2ba3aca118756370bd3d630"
            },
            "downloads": -1,
            "filename": "vtt_to_srt2-0.2.0.3-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "ecd06b004935db4026350a0330b83005",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 9035,
            "upload_time": "2024-07-23T21:55:29",
            "upload_time_iso_8601": "2024-07-23T21:55:29.890684Z",
            "url": "https://files.pythonhosted.org/packages/a1/fa/7e771c563c7efdb8d1d31a5612110ef832fabe332ad89676baca0f6a4211/vtt_to_srt2-0.2.0.3-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "eb3ca4d67b37976d978a5054fd48b165a9a9a99f892f99dc3cd756a118bc991d",
                "md5": "bcd5678e7cf5dcc626a921aec4bc8244",
                "sha256": "4a5d600d03fe127bb0102b07a93d84270c961996cc4a75ddee81632025270d0b"
            },
            "downloads": -1,
            "filename": "vtt_to_srt2-0.2.0.3.tar.gz",
            "has_sig": false,
            "md5_digest": "bcd5678e7cf5dcc626a921aec4bc8244",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 10366,
            "upload_time": "2024-07-23T21:55:31",
            "upload_time_iso_8601": "2024-07-23T21:55:31.252057Z",
            "url": "https://files.pythonhosted.org/packages/eb/3c/a4d67b37976d978a5054fd48b165a9a9a99f892f99dc3cd756a118bc991d/vtt_to_srt2-0.2.0.3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-07-23 21:55:31",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "jsonzilla",
    "github_project": "vtt_to_srt2",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [],
    "lcname": "vtt-to-srt2"
}
        
Elapsed time: 0.32799s