Modify Subtitles Helper
Cython/C++ functions to be imported in other projects.
Modify Subs
Module to load an ASS or SRT file, a words JSON, and apply the required replacements to the subtitles.
from c_delocalizer.modify_subs import overwrite_subs, modify_subs_py
generated_json = modify_subs_py(str(f), str(wordsfile)) # Opens file, execute replacements, and save result on a JSON file for further use.
generated_subfile = overwrite_subs(str(f), str(wordsfile)) # Same as before, but creates delocalized subtitle file instead of JSON.
Pair Subs
Module to send a pair of intervals, and returns a list of pairs based on the time segment. You can define the tolerance margin through a PAIR_MARGIN variable in the .env.
from c_delocalizer.pair_subs import find_intersections
set_a = [
{"start": 0, "end": 5000, "text":"Lorem Ipsum", "original":"Lorem Ipsum", "nl": 0},
{"start": 5000, "end": 10000, "text":"Foo Bar", "original":"Foo Bar", "nl": 1},
]
set_b = [
{"start": 0, "end": 5000, "text":"Lorem Ipsum", "original":"Lorem Ipsum", "nl": 0},
{"start": 5000, "end": 10000, "text":"Foo Bar", "original":"Foo Bar", "nl": 1},
]
intersections = find_intersections(set_a, set_b)
Sister projects:
Metadata
Release files for modify-subs 0.5.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distributions (wheels)
Total release size: 40.8 MB
Release files / modify_subs-0.5.2-cp313-cp313-win_amd64.whl
| Download URL | modify_subs-0.5.2-cp313-cp313-win_amd64.whl |
|---|---|
| Size | 1.7 MB |
| Tags | CPython 3.13 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
f77c7920605db4154e0cc5ba372e06f57996910118d68a1c4f1176e3685cb0cf
|
|
BLAKE2b-256 checksum How to use checksums |
bb0698b99b7ff11c1f15261cb4ac28d68cac790472afe7a1d516ef298dc2b435
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.12.8
|
Release files / modify_subs-0.5.2-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | modify_subs-0.5.2-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 3.2 MB |
| Tags | CPython 3.13 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
85f78edd176d9e38a26c617a30f74e1da6700cb9c06285617969c1d326c2605a
|
|
BLAKE2b-256 checksum How to use checksums |
c41587f0b68d9f343acf6dd82bd3c65c7f39b56a9a943b23e6e83997dba33e3d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.12.8
|
Release files / modify_subs-0.5.2-cp313-cp313-macosx_14_0_arm64.whl
| Download URL | modify_subs-0.5.2-cp313-cp313-macosx_14_0_arm64.whl |
|---|---|
| Size | 1.9 MB |
| Tags | CPython 3.13 macOS 14.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
342f2e4dfc0e576cd55f45a57181d4a2675f28fb3698521f61414eeaa4b5bd8b
|
|
BLAKE2b-256 checksum How to use checksums |
191d124d41680ba6d019789159df5fd0bd475eeaef6cd1a9fae4ddf73c517247
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.12.8
|
Release files / modify_subs-0.5.2-cp312-cp312-win_amd64.whl
| Download URL | modify_subs-0.5.2-cp312-cp312-win_amd64.whl |
|---|---|
| Size | 1.7 MB |
| Tags | CPython 3.12 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
35aa4cb11de187c3bac808d455cb31dae34dba4349a2a2de297c5128e4f6a046
|
|
BLAKE2b-256 checksum How to use checksums |
4792007716f8ed7768d9d2d7e9e35595fe4fbbdf41832bd1699eba194adefb77
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.12.8
|
Release files / modify_subs-0.5.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | modify_subs-0.5.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 3.2 MB |
| Tags | CPython 3.12 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
92ca0f1386db7a0716d99c1937992d7665dd284f6fe372a07d656c8b6bbf225a
|
|
BLAKE2b-256 checksum How to use checksums |
072e9f83b6d8601ab995d71eae32bd29e3e00ba7f873e44dcb00a42bdf8d72a3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.12.8
|
Release files / modify_subs-0.5.2-cp312-cp312-macosx_14_0_arm64.whl
| Download URL | modify_subs-0.5.2-cp312-cp312-macosx_14_0_arm64.whl |
|---|---|
| Size | 1.9 MB |
| Tags | CPython 3.12 macOS 14.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
cccfa6fa02723ffaa8f55fbabdf9ac399c0e134f0d8d6445d945927db3e64013
|
|
BLAKE2b-256 checksum How to use checksums |
addfa5fceae4b0aaa47d328632ddccb0e58feae97eb631176a3baa2d538d571d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.12.8
|
Release files / modify_subs-0.5.2-cp311-cp311-win_amd64.whl
| Download URL | modify_subs-0.5.2-cp311-cp311-win_amd64.whl |
|---|---|
| Size | 1.7 MB |
| Tags | CPython 3.11 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
453c8221538c133d5a513856b604032d3bfcc81eb3e9e47022ed0a4136af3c06
|
|
BLAKE2b-256 checksum How to use checksums |
4fef862f0f0fafa190e5a2d6b8784ec97754a8f090fd21494e5a4d61c65d32dd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.12.8
|
Release files / modify_subs-0.5.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | modify_subs-0.5.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 3.2 MB |
| Tags | CPython 3.11 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
4951961baad8c0ffbd99033ea0cec2dc20a90bbb0ec966b8ca344352f31f5151
|
|
BLAKE2b-256 checksum How to use checksums |
74065fdf97168f621a1746d6a5350a01c3b25daab8dfa3c4e3f465e1539a979c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.12.8
|
Release files / modify_subs-0.5.2-cp311-cp311-macosx_14_0_arm64.whl
| Download URL | modify_subs-0.5.2-cp311-cp311-macosx_14_0_arm64.whl |
|---|---|
| Size | 1.9 MB |
| Tags | CPython 3.11 macOS 14.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
fd152c9870ec642385641b8a21af61ff1f5e451897adaa96dc0e3cad8ef94ad6
|
|
BLAKE2b-256 checksum How to use checksums |
2ed80248367edc894ef5418762378663272b72dc19e5c98d6d84098e84df5846
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.12.8
|
Release files / modify_subs-0.5.2-cp310-cp310-win_amd64.whl
| Download URL | modify_subs-0.5.2-cp310-cp310-win_amd64.whl |
|---|---|
| Size | 1.7 MB |
| Tags | CPython 3.10 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
4fb3a2589caf62eaec1dd432094ac47d34100e3c6389ecaca96a763046c9bdb6
|
|
BLAKE2b-256 checksum How to use checksums |
27a559ebf5bc33de0f44a8e0077056f73771ccbd3989288fecea6b8e4625b9d8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.12.8
|
Release files / modify_subs-0.5.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | modify_subs-0.5.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 3.2 MB |
| Tags | CPython 3.10 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
999a814e710c31b9a03da637d5bc0365eebc74bf05964b342dc6f665948365cc
|
|
BLAKE2b-256 checksum How to use checksums |
1caaec7a52b04d81d2196071bb4edd669fb2030ed49293a981b64cdeac07e9d8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.12.8
|
Release files / modify_subs-0.5.2-cp310-cp310-macosx_14_0_arm64.whl
| Download URL | modify_subs-0.5.2-cp310-cp310-macosx_14_0_arm64.whl |
|---|---|
| Size | 1.9 MB |
| Tags | CPython 3.10 macOS 14.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
e4f00425f36b1687747a43846575bcd6372d8c3c69ac3dbc7cdc0ef4175fb344
|
|
BLAKE2b-256 checksum How to use checksums |
f67cc1f6591b7312b7af85b7f4ea4a985c2ed56dec186c5fd45bb0edfa465314
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.12.8
|
Release files / modify_subs-0.5.2-cp39-cp39-win_amd64.whl
| Download URL | modify_subs-0.5.2-cp39-cp39-win_amd64.whl |
|---|---|
| Size | 1.7 MB |
| Tags | CPython 3.9 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
2412cc0beaa9fea01958a21adf93d0dc6801ff16cfc6f3d0458d76bca142f438
|
|
BLAKE2b-256 checksum How to use checksums |
ce561ca3e949083dfc9a16bd1760dba56325776d9b5c47c8fef2d915f34d2b27
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.12.8
|
Release files / modify_subs-0.5.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | modify_subs-0.5.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 3.2 MB |
| Tags | CPython 3.9 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
8416d98de9123c59c62c96c2e4dcaade4f95ff50a7fe5c2b0539fbac91fc8874
|
|
BLAKE2b-256 checksum How to use checksums |
f37c6c416400417b95c52ec63c498a26dae9085138fab7a1420ddf963b6e4c82
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.12.8
|
Release files / modify_subs-0.5.2-cp39-cp39-macosx_14_0_arm64.whl
| Download URL | modify_subs-0.5.2-cp39-cp39-macosx_14_0_arm64.whl |
|---|---|
| Size | 1.9 MB |
| Tags | CPython 3.9 macOS 14.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
77262afd95c566d26f53418d3f035c054450e23465eeed5581736e42272847d2
|
|
BLAKE2b-256 checksum How to use checksums |
cad5096879c2ad5ec77599142d06c0afc780f56b1167c04811d877cd9b392780
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.12.8
|
Release files / modify_subs-0.5.2-cp38-cp38-win_amd64.whl
| Download URL | modify_subs-0.5.2-cp38-cp38-win_amd64.whl |
|---|---|
| Size | 1.7 MB |
| Tags | CPython 3.8 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
438a429cca9673a92285a15a2a021c892f8c9b8e6b9363eb7e1e0f1e1a1e94a0
|
|
BLAKE2b-256 checksum How to use checksums |
3dd8f6a0519563854d6eef120e010aa6bafd904d454be28dacdbbcf2ddcbfd56
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.12.8
|
Release files / modify_subs-0.5.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | modify_subs-0.5.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 3.2 MB |
| Tags | CPython 3.8 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
8d55346691c3d0c734bf9bce7c03e050e7d50ba2951770d80fd747f455ba21a5
|
|
BLAKE2b-256 checksum How to use checksums |
b0ea93f43ae3d5e80a4e632f54e6459cbee382098658dc8f0ac5b8c144ed605d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.12.8
|
Release files / modify_subs-0.5.2-cp38-cp38-macosx_14_0_arm64.whl
| Download URL | modify_subs-0.5.2-cp38-cp38-macosx_14_0_arm64.whl |
|---|---|
| Size | 1.9 MB |
| Tags | CPython 3.8 macOS 14.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
ee36f65c889b26b32a177bc64bd864e44e189e1f30e52d305219233dfb6b3735
|
|
BLAKE2b-256 checksum How to use checksums |
b3fb6d9b7e88ac6ac396867bd0cc9b76c613bf7e00f3925de3c71a97205ccb1a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.12.8
|
Security for modify-subs 0.5.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.