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)

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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for timeline_craft-0.0.2.tar.gz
Algorithm Hash digest
SHA256 542f5b022cf581ec6d4f16cd82d2dfa980220962e49af6d8411db5a9cb696bf7
MD5 5fa36090cac8331ed1fa888a8558ae2f
BLAKE2b-256 72d8b2a3e5edbf6a39f196b1f426afe36ecfec98b73b14806dd4d5f0b8fbd88e

See more details on using hashes here.

Provenance

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

File metadata

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

File hashes

Hashes for timeline_craft-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 8c6441e25f83fecde640a5ab0b6809fce9de2ba332cb6475a7e26ae1f8b8db2c
MD5 cb4a80a32296c5f4b9e47eec516dd593
BLAKE2b-256 886ec6f4f5c405e492147e443a8dfecd76b1afc93e49934e3539e23724969a39

See more details on using hashes here.

Provenance

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