Skip to main content

Lesley is a lightweight Python package designed to create interactive, github-style, calendar-based heatmaps using altair.

Project description

Lesley

PyPI Downloads

example workflow

Lesley is a lightweight Python package designed to create interactive, github-style, calendar-based heatmaps using altair.

Example Usage

Plot github-style heatmap

dates = pd.date_range(start='2024-01-01', end='2024-12-31')
values = np.random.randint(0, 10, size=len(dates))
lesley.cal_heatmap(dates, values)

github-styled calendar heatmap

Plot empty calendar

lesley.plot_calendar(year=2025)

empty full year calendar

Plot calendar with marker and label

holiday_df = pd.read_csv('holidays.csv') # need at least 2 columns: date and label
lesley.plot_calendar(year=2025, label_df=holiday_df, color='Oranges')

full year calendar with label and marker

Plot calendar heatmap

dividend_df = pd.read_csv('dividend.csv') # need 3 columns: date, label, and value
lesley.plot_calendar(year=2024, label_df=dividend_df, color='Greens', layout='2x6')

full year calendar heatmap

Plot individual month

dates = pd.date_range(start='2024-01-01', end='2024-12-31')
values = np.random.randint(0, 10, size=len(dates))
lesley.month_plot(dates, values, 1)

single month plot

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

lesley-0.3.0.tar.gz (7.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

lesley-0.3.0-py3-none-any.whl (6.3 kB view details)

Uploaded Python 3

File details

Details for the file lesley-0.3.0.tar.gz.

File metadata

  • Download URL: lesley-0.3.0.tar.gz
  • Upload date:
  • Size: 7.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for lesley-0.3.0.tar.gz
Algorithm Hash digest
SHA256 a799c9e69da53ffb10000ab997699d3d1379889be22b5687d07602bcc9ca9363
MD5 c262728b0cd02d556746249fd0930760
BLAKE2b-256 e1dcf1f21c36f8a053caf95a1d235f98a92ecb817483f8e7049d6bfd4cf45d99

See more details on using hashes here.

Provenance

The following attestation bundles were made for lesley-0.3.0.tar.gz:

Publisher: publish.yml on mitbal/lesley

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file lesley-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: lesley-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 6.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for lesley-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 be57453cb2eab461b754276d7f57261f4b52ba73596dc50a7150ed527ebf4c41
MD5 b2ce0098fa1755e447d0032f25d4d6b8
BLAKE2b-256 e5a99f0e32432600064a2aeab1140bd72ac562efebe852d66e6d8d0c36d56618

See more details on using hashes here.

Provenance

The following attestation bundles were made for lesley-0.3.0-py3-none-any.whl:

Publisher: publish.yml on mitbal/lesley

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page