Skip to main content

A Python library for creating timeline visualizations in PowerPoint

Project description

timeline for powerpoint

this project is about adding a timeline (with smooth transitions) in microsoft powerpoint slides.

this is the PyPI package version of the project (timeline-craft).

demo

demo

preview compare

before processing after processing
before after

use

from pathlib import Path
from pptx import Presentation
from timeline import set_sidebar_timeline, move_elements_to_right, set_morph_transitions, Configurations


if __name__ == "__main__":
    path_ppt = Path("~/example.pptx")
    tags = ["intro"] * 15 + ["methods"] * 10 + ["results"] * 8

    example_ppt = Presentation(path_ppt)

    config = Configurations(
        sidebar_width=0.12,
        sidebar_item_height=0.10,
        sidebar_init_font_size=18,
        transition_duration=0.3,
        apply_morph_transition=True,
    )

    move_elements_to_right(example_ppt, config=config)
    set_sidebar_timeline(ppt=example_ppt, tags=tags, config=config)
    set_morph_transitions(example_ppt, config=config)

    example_ppt.save(path_ppt.parent / "timeline.pptx")

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

timeline_craft-0.1.5.tar.gz (6.7 kB view details)

Uploaded Source

Built Distribution

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

timeline_craft-0.1.5-py3-none-any.whl (7.5 kB view details)

Uploaded Python 3

File details

Details for the file timeline_craft-0.1.5.tar.gz.

File metadata

  • Download URL: timeline_craft-0.1.5.tar.gz
  • Upload date:
  • Size: 6.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for timeline_craft-0.1.5.tar.gz
Algorithm Hash digest
SHA256 ffca3492a0f179859e6a4b13827132b828458c86d6610df3ffed0e6d733c20e7
MD5 7cf65b7f4a44e32f65df1fd1b00354fb
BLAKE2b-256 193c69ceb882ba5f4bae184cbc3c09bf81f14fe6b94f6fa29895bd87a24c4080

See more details on using hashes here.

Provenance

The following attestation bundles were made for timeline_craft-0.1.5.tar.gz:

Publisher: workflow.yml on Don-Yin/timeline-craft

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file timeline_craft-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: timeline_craft-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 7.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for timeline_craft-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 f8f28a91ba402afc348242ac4d148845ed76447c8c4972c19af04ac05c77cc1c
MD5 286e9e731a531a604f378e8d47c7b918
BLAKE2b-256 05be1e54680216660c3bd9bb46f03d47ce0028b2ff83bdbbd2e4a334b96c0475

See more details on using hashes here.

Provenance

The following attestation bundles were made for timeline_craft-0.1.5-py3-none-any.whl:

Publisher: workflow.yml on Don-Yin/timeline-craft

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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