
Research
wget to Wipeout: Malicious Go Modules Fetch Destructive Payload
Socket's research uncovers three dangerous Go modules that contain obfuscated disk-wiping malware, threatening complete data loss.
A powerful Timeline control for Flet that allows you to create beautiful, customizable timelines in your Flet applications.
Add dependency to pyproject.toml
of your Flet app:
dependencies = [
"flet-timelines",
"flet>=0.27.6",
]
Here's a simple example of how to create a basic timeline:
from flet_timelines import Timeline, TimelineType, ContentsAlign
import flet as ft
def main(page: ft.Page):
# Create timeline items
items = [
ft.Container(
content=ft.Card(
content=ft.Container(
content=ft.Column([
ft.Text("Event 1", weight="bold"),
ft.Text("Description of event 1")
]),
padding=10
)
),
width=200
),
ft.Container(
content=ft.Card(
content=ft.Container(
content=ft.Column([
ft.Text("Event 2", weight="bold"),
ft.Text("Description of event 2")
]),
padding=10
)
),
width=200
)
]
# Create timeline
timeline = Timeline(
items=items,
timeline_type=TimelineType.BASIC,
contents_align=ContentsAlign.BASIC,
color=ft.colors.BLUE,
indicator_size=20,
expand=True
)
page.add(timeline)
ft.app(main)
The basic timeline provides a simple, clean layout with customizable indicators and connectors.
Timeline(
items=items,
timeline_type=TimelineType.BASIC,
contents_align=ContentsAlign.BASIC
)
The style-based timeline offers advanced styling options for indicators, connectors, and spacing.
Timeline(
items=items,
timeline_type=TimelineType.STYLE_BASED,
contents_align=ContentsAlign.ALTERNATING,
connector_style=ConnectorStyle.DASHED,
indicator_style=IndicatorStyle.OUTLINED
)
ContentsAlign.BASIC
: Items aligned on one sideContentsAlign.REVERSE
: Items aligned on the opposite sideContentsAlign.ALTERNATING
: Items alternate between sidesitems
: List of Control objects to display in the timelinetimeline_type
: Type of timeline (TimelineType.BASIC or TimelineType.STYLE_BASED)contents_align
: Alignment of timeline items (ContentsAlign.BASIC, REVERSE, or ALTERNATING)color
: Color of the timeline indicators and connectorsindicator_size
: Size of the timeline indicatorsconnector_style
: Style of connectors (ConnectorStyle.SOLID, DASHED, or DECORATED)connector_thickness
: Thickness of connector linesconnector_space
: Space between connector and contentconnector_indent
: Indentation of connectorsindicator_style
: Style of indicators (IndicatorStyle.DOT, OUTLINED, CONTAINER, or TRANSPARENT)indicator_position
: Position of indicatorsnode_position
: Position of nodesnode_align
: Alignment of nodes (TimelineNodeAlign.START, END, or BASIC)connection_direction
: Direction of connections (ConnectionDirection.BEFORE or AFTER)dash_size
: Size of dashes in dashed connector stylegap_size
: Size of gaps between dashesgap_color
: Color of gaps in dashed connector styleContributions are welcome! Please feel free to submit a Pull Request.
FAQs
Timelines control for Flet
We found that flet-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.
Research
Socket's research uncovers three dangerous Go modules that contain obfuscated disk-wiping malware, threatening complete data loss.
Research
Socket uncovers malicious packages on PyPI using Gmail's SMTP protocol for command and control (C2) to exfiltrate data and execute commands.
Product
We redesigned Socket's first logged-in page to display rich and insightful visualizations about your repositories protected against supply chain threats.