https://github.com/banool/python-timeline
A little Python timeline with HTML/CSS/JS for recording the history of housemates at my sharehouse.
https://github.com/banool/python-timeline
Last synced: about 1 year ago
JSON representation
A little Python timeline with HTML/CSS/JS for recording the history of housemates at my sharehouse.
- Host: GitHub
- URL: https://github.com/banool/python-timeline
- Owner: banool
- Created: 2018-01-12T12:35:51.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-01-12T12:44:55.000Z (over 8 years ago)
- Last Synced: 2025-03-14T23:43:25.150Z (over 1 year ago)
- Language: Python
- Size: 6.84 KB
- Stars: 3
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Python timeline
This is some code for producing a timeline. The data manipulation is Python,
while the actual timeline is made using [vis.js](http://visjs.org/timeline_examples.html).
The code in `loader.py` is used for importing and exporting data from various
formats. Some of those functions are quite dirty and should be used with
caution.
Run `python3 timeline.py > data.js` and then open `timeline.html` for an
example. The code in `timeline.py` validates the data first before trying
to produce the output. One of the main requirements is that the each Duration
item's end date has to be the day before the start date of the next Duration.
See `example.py` for an example, obviously...