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.

todo

  • make all config separate
  • do the auto transition
  • wbs and pack in saas

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.2.tar.gz (6.8 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.2-py3-none-any.whl (7.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: timeline_craft-0.1.2.tar.gz
  • Upload date:
  • Size: 6.8 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.2.tar.gz
Algorithm Hash digest
SHA256 2b36f1cd29998c6da62c7f3eb6f5583da2b42ebba63ce8446a60243085fbbec2
MD5 608cd1d91119616e2b80ed02650a7e68
BLAKE2b-256 aaaa705445621af8f98712d1eebdceca6aba30f4498dfe6ea5f0ab673dbafc6e

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: timeline_craft-0.1.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 fcc1657e52705d5273f664bdd64a42c22d97c6fda27613354a17a675aaff464b
MD5 f4955eb5a92b8ac50f6b1f1aeab1ed8e
BLAKE2b-256 7306f5ccaf2163d22f9949056e35537c063f9c0bb475928089fa0188d5517227

See more details on using hashes here.

Provenance

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