Metadata-Version: 2.4
Name: timeline-craft
Version: 0.1.0
Summary: A Python library for creating timeline visualizations in PowerPoint
Author-email: Don Yin <don_yin@outlook.com>
Project-URL: Homepage, https://github.com/Don-Yin/timeline-craft
Requires-Python: >=3.12
Description-Content-Type: text/markdown
Requires-Dist: python-pptx
Requires-Dist: webcolors

# 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](https://github.com/don-yin/powerpoint-timeline/blob/cf5610f7db48a2f3e2fb747e2f197c5dbedd45e8/public/demo.gif)

# preview compare
|      before processing       |      after processing      |
| :--------------------------: | :------------------------: |
| ![before](public/before.png) | ![after](public/after.png) |


# use

```python
from pathlib import Path
from pptx import Presentation
from timeline import set_sidebar_timeline, move_elements_to_right


if __name__ == "__main__":
    path_ppt = Path("~/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")
```
