Product
Introducing License Enforcement in Socket
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
historical-timelines
Advanced tools
Python package for creating timelines of historical events.
historical-timelines is a python package for creating nice looking timelines, specifically with historical data in mind. historical-timelines uses bokeh to create images.
Install with pip install historical_timelines
First, you'll need to import the HistoricalTimeline
object.
from historical_timelines import HistoricalTimeline
Then, you need to populate it. Here's how to populate and display a random timeline:
from historical_timelines import HistoricalTimeline
timeline = HistoricalTimeline("Random Timeline")
timeline.populate_random_timeline()
timeline.render_timeline("timeline.html")
This will produce something that looks like this:
If you have a csv that you want to convert to a timeline, you can do that too. Suppose you have a csv with the path timeline.csv
, and five columns entitled Name
, Description
, Label
, Start
, and End
. It would be imported like this.
from historical_timelines import HistoricalTimeline
timeline = HistoricalTimeline("Timeline from my csv")
timeline_json = HistoricalTimeline.json_from_csv(
"timeline.csv",
"Name",
"Description",
"Label",
"Start",
"End",
)
timeline.populate_timeline_from_dict(timeline_json)
timeline.render_timeline("timeline.html")
The documentation can be found here.
A jupyter tutorial can be found here.
FAQs
A Python package for making historical timelines
We found that historical-timelines demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
Product
We're launching a new set of license analysis and compliance features for analyzing, managing, and complying with licenses across a range of supported languages and ecosystems.
Product
We're excited to introduce Socket Optimize, a powerful CLI command to secure open source dependencies with tested, optimized package overrides.