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

Uploaded Python 3

File details

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

File metadata

  • Download URL: timeline_craft-0.1.3.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.3.tar.gz
Algorithm Hash digest
SHA256 f66c3537e9618a2db62abf3ddd43506289c4c5f3a04a91dea2ffd3d79306c4ea
MD5 1f1f5ea8aca6523aa054a91998b610d5
BLAKE2b-256 a13d9a06cf9aa2bfe3763cad098226875d0415793b36825e4e24b0685b2655fc

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: timeline_craft-0.1.3-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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 dd685d764ebc8707046bb3dfab330c82b74430b634dd499e8ce8470473e810e8
MD5 c146b1662d3971293723c8b0b6c7706d
BLAKE2b-256 7feb3d7739c48294164f0a542fc10a6145bb5094f8b4281831cdee9151a9f84e

See more details on using hashes here.

Provenance

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