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.4.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.4-py3-none-any.whl (7.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: timeline_craft-0.1.4.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.4.tar.gz
Algorithm Hash digest
SHA256 aee3c40e9982aa2e2aa6b456dc56f8fa8b454940dba2353f6dd40a3b9d1181ce
MD5 ba3780c693e12330e0f99bea243a37cb
BLAKE2b-256 e35eeb27c252165f3b2a008eb5eba9b64637b2792fa5a76977c0a6368b017bc9

See more details on using hashes here.

Provenance

The following attestation bundles were made for timeline_craft-0.1.4.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.4-py3-none-any.whl.

File metadata

  • Download URL: timeline_craft-0.1.4-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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 103864fae0fd056871a11a58a3a57c0de3e8c206e60f7c951682bbc53a54cc9e
MD5 4767f0641c349c7f635d22829cbc788e
BLAKE2b-256 e54b89706a37e49332310e96afa6249f51d8fa01c09d9383f8f5bac4551aeb70

See more details on using hashes here.

Provenance

The following attestation bundles were made for timeline_craft-0.1.4-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