Skip to main content

Python Package Aeidon for Subtitles

PyPI Downloads

aeidon is a Python package that provides classes and functions for dealing with text-based subtitle files of many different formats. Functions exist for reading and writing subtitle files as well as manipulating subtitle data, i.e. positions (times or frames) and texts.

Examples

Converting a file from the SubRip format to the MicroDVD format:

project = aeidon.Project()
project.open_main("/path/to/file.srt", "utf_8")
project.set_framerate(aeidon.framerates.FPS_23_976)
project.save_main(aeidon.files.new(aeidon.formats.MICRODVD,
                                   "/path/to/file.sub",
                                   "utf_8"))

Making all subtitles in a file appear two seconds earlier:

project = aeidon.Project()
project.open_main("/path/to/file.srt", "utf_8")
project.shift_positions(None, aeidon.as_seconds(-2))
project.save_main()

Installation

pip install -U aeidon

Documentation

https://otsaloma.io/gaupol/doc/api/aeidon.html

The API documentation is for an older version, but it applies 99% to the latest version as well. There's currently no build mechanism for up-to-date API documentation. Restoring that is a known low-priority issue.

History

aeidon is part of the Gaupol subtitle editor, where the other package, gaupol, provides the GTK user interface.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

aeidon-2.0.tar.gz (102.1 kB view details)

Uploaded Source

Built Distribution

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

aeidon-2.0-py3-none-any.whl (164.5 kB view details)

Uploaded Python 3

File details

Details for the file aeidon-2.0.tar.gz.

File metadata

  • Download URL: aeidon-2.0.tar.gz
  • Upload date:
  • Size: 102.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.6

File hashes

Hashes for aeidon-2.0.tar.gz
Algorithm Hash digest
SHA256 8dd487d4b4543274523c8740d0993dac81334d1209d5d7a7521ea609d084c31e
MD5 c5b769933aa037049cad7e264ee0b6bb
BLAKE2b-256 c9e323baf2d3b640d2eee8d8788f98926ab212080a1a501d0d80ad168cb02132

See more details on using hashes here.

File details

Details for the file aeidon-2.0-py3-none-any.whl.

File metadata

  • Download URL: aeidon-2.0-py3-none-any.whl
  • Upload date:
  • Size: 164.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.6

File hashes

Hashes for aeidon-2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b085d5f89ccd7a620a85f1d57dd8c4d3af990a90a42a7d9bcf9f6d5f088d565f
MD5 3af1c869a8b51c316c679d091560e040
BLAKE2b-256 a1636cbd6ac810c40d5b5098d499461c90d34f3b6116a7573e12a2a3c15e33b8

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