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.

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


if __name__ == "__main__":
    path_ppt = Path("/Users/donyin/Desktop/example.pptx")
    tags = ["Intro"] * 33

    example_ppt = Presentation(path_ppt)

    move_elements_to_right(example_ppt, sidebar_width=0.12)
    set_sidebar_timeline(ppt=example_ppt, tags=tags, sidebar_item_height=0.10)

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

Disclaimer

This project is under development, with further refinements and feature additions in progress. Your feedback and contributions are highly appreciated. This is probably the dirtiest piece of code I have written, and I blame it on python-pptx, on which this project, out of no other choice, is based. Although useful it is a horrible package with irregular syntax and poor documentation.

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.0.3.tar.gz (6.3 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.0.3-py3-none-any.whl (6.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: timeline_craft-0.0.3.tar.gz
  • Upload date:
  • Size: 6.3 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.0.3.tar.gz
Algorithm Hash digest
SHA256 aca750936e1c7435453b0ecd1bca7d0b4f1206f2144935ca24f8f9732d79de46
MD5 d34c2ecd30e18a7a0fd4a22bce43827a
BLAKE2b-256 9940fdd080a3fe41d8f15e8637cff8cb5e916db0c1aa4dce37dc833647ca65e9

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: timeline_craft-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 6.2 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.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 bc9829039516a595f922c970fd2dc1c6b2998689bc682990a53931610d140370
MD5 f83cf9b74d38b497def7a949813b2168
BLAKE2b-256 f58a42e2f3308fe4b762b297734f857a977f866964a5a87d6bdb3cc3d890a5f5

See more details on using hashes here.

Provenance

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