Skip to main content

repo logo

Timeline Component for Streamlit

A simple component to display a timeline in Streamlit apps. It integrates Knightlab's TimelineJS.

Installation

First install Streamlit (of course!) then pip-install this library:

pip install streamlit
pip install streamlit-timeline

Example

# Streamlit Timeline Component Example

import streamlit as st
from streamlit_timeline import timeline


# use full page width
st.set_page_config(page_title="Timeline Example", layout="wide")

# load data
with open('example.json', "r") as f:
    data = f.read()

# render timeline
timeline(data, height=800)

Parameters

The timeline() function accepts a string or a dict, as long as it's in the TimelineJS json format. The optional heigth of the visualization is in px.

Preview

You can also check the preview video or go to the demo A History of Natural Language Processing.

timeline example

Metadata

Release files for streamlit-timeline 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for streamlit-timeline 0.0.2
File Size Uploaded Provenance Actions
streamlit-timeline-0.0.2.tar.gz 2.9 kB Without provenance Details for streamlit-timeline-0.0.2.tar.gz

Release files / streamlit-timeline-0.0.2.tar.gz

Download URL streamlit-timeline-0.0.2.tar.gz
Size 2.9 kB
Tags Source
SHA-256 checksum
How to use checksums
6d77e418cc08211d0cbe87f21cb9b57038b1cda68c364e5a4e518496f6db955b
BLAKE2b-256 checksum
How to use checksums
bfdf51f1c25c0bf72f314b0e238c508011a96ee9534232b2c4edb3156a2f49d8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.22.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.5

Security for streamlit-timeline 0.0.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.2 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page