Lesley is a lightweight Python package designed to create interactive, github-style, calendar-based heatmaps using altair.
Project description
Lesley
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)
Plot empty calendar
lesley.plot_calendar(year=2025)
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')
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')
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)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file lesley-0.2.0.tar.gz.
File metadata
- Download URL: lesley-0.2.0.tar.gz
- Upload date:
- Size: 4.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c5d633ef07bd20f5ea1389ea6576167edc9979994329019f69153a239c374b11
|
|
| MD5 |
c5084e0f1bd8791e3f2111620828c664
|
|
| BLAKE2b-256 |
5bd6ad738dbff51d3afc275df6de9301c8c16c27476600cb419e46e9e308f2c8
|
Provenance
The following attestation bundles were made for lesley-0.2.0.tar.gz:
Publisher:
publish.yml on mitbal/lesley
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
lesley-0.2.0.tar.gz -
Subject digest:
c5d633ef07bd20f5ea1389ea6576167edc9979994329019f69153a239c374b11 - Sigstore transparency entry: 167007212
- Sigstore integration time:
-
Permalink:
mitbal/lesley@bd4823dc48e90f23178e22bdf018f7c5e4105052 -
Branch / Tag:
refs/tags/v0.2 - Owner: https://github.com/mitbal
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@bd4823dc48e90f23178e22bdf018f7c5e4105052 -
Trigger Event:
release
-
Statement type:
File details
Details for the file lesley-0.2.0-py3-none-any.whl.
File metadata
- Download URL: lesley-0.2.0-py3-none-any.whl
- Upload date:
- Size: 5.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b008d80ca19a61c2d01b8e389699f0aec1c536aafe61732a7668b313a4c2f336
|
|
| MD5 |
63124cfe1fab16d223d3e86164822426
|
|
| BLAKE2b-256 |
c14cb936eb2dbea166e8781a46b04760546aee384a8b5d8edbf98c32339759e2
|
Provenance
The following attestation bundles were made for lesley-0.2.0-py3-none-any.whl:
Publisher:
publish.yml on mitbal/lesley
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
lesley-0.2.0-py3-none-any.whl -
Subject digest:
b008d80ca19a61c2d01b8e389699f0aec1c536aafe61732a7668b313a4c2f336 - Sigstore transparency entry: 167007214
- Sigstore integration time:
-
Permalink:
mitbal/lesley@bd4823dc48e90f23178e22bdf018f7c5e4105052 -
Branch / Tag:
refs/tags/v0.2 - Owner: https://github.com/mitbal
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@bd4823dc48e90f23178e22bdf018f7c5e4105052 -
Trigger Event:
release
-
Statement type: