
Security News
npm Adopts OIDC for Trusted Publishing in CI/CD Workflows
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
Supply Chain Security
Vulnerability
Quality
Maintenance
License
Python package to enable easy conversion of .srt files to .vtt files.
srt-to-vtt is available on PyPI and you can install the latest version with
pip install srt-to-vtt
from srt_to_vtt import srt_to_vtt
path_to_my_srt_file = "example.srt"
path_to_converted_vtt_file = "output.vtt"
# converts example.srt into output.vtt
srt_to_vtt(path_to_my_srt_file, path_to_converted_vtt_file)
stv -i example.srt -o output.vtt
Clone this repo and then, at the root, install the package in ediable mode with
pip install -e .
You can now make changes to the package source code found in srt-to-vtt/srt_to_vtt/
and see them reflected immediately.
Before doing anything else, make sure to bump the version number under [project]
in pyproject.toml
. Please use semantic versioning.
Then, install the build requirements with
pip install -r build_requirements.txt
This project adheres to the Black code style. You can automatically refomat your code to Black by executing the following in the root directory of this repo:
black .
Then, to build, run
python -m build
After building the package, install it with
pip install dist/srt_to_vtt-#.#.#-py3-none-any.whl
You may now run the tests by simply executing
pytest
Assuming that all the tests are passing, the package is now ready to be released on PyPI!
Open a pull request on the main branch and, if approved and merged, the package will be automatically updated on PyPI after the next Release is published on GitHub.
FAQs
Python package to enable easy conversion of .srt files to .vtt files.
We found that srt-to-vtt demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
Research
/Security News
A RubyGems malware campaign used 60 malicious packages posing as automation tools to steal credentials from social media and marketing tool users.
Security News
The CNA Scorecard ranks CVE issuers by data completeness, revealing major gaps in patch info and software identifiers across thousands of vulnerabilities.