lesley


Namelesley JSON
Version 0.1.5 PyPI version JSON
download
home_pageNone
SummaryPlot calendar heatmap in python using Altair. Inspired from July
upload_time2024-12-31 17:51:48
maintainerNone
docs_urlNone
authorNone
requires_python>=3.11
licenseNone
keywords heatmap visualisation calendar daily matplotlib github plot month plot date plot plot plotting
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Lesley

Lesley is a library to create a heatmap of daily data in for the whole calendar year. Inspired by July (https://github.com/e-hulten/july)

## How to use

Plot the whole year 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)
```
![calendar heatmap output example](https://raw.githubusercontent.com/mitbal/lesley/main/images/calendar_heatmap.png)

Plot a single 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](https://raw.githubusercontent.com/mitbal/lesley/main/images/month_plot.png)

Plot all month in single year
```
dates = pd.date_range(start='2024-01-01', end='2024-12-31')
values = np.random.randint(0, 10, size=len(dates))
lesley.calendar_plot(dates, values, nrows=3)
```
![all month plot](https://raw.githubusercontent.com/mitbal/lesley/main/images/calendar_plot.png)

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "lesley",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.11",
    "maintainer_email": null,
    "keywords": "heatmap, visualisation, calendar, daily, matplotlib, github plot, month plot, date plot, plot, plotting",
    "author": null,
    "author_email": "M Iqbal Tawakal <mit.iqi@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/32/aa/a79d96051027f6340b97c1e8a8ffeea8fd0d2d631f6fbe67e3f58f45a2f4/lesley-0.1.5.tar.gz",
    "platform": null,
    "description": "# Lesley\n\nLesley is a library to create a heatmap of daily data in for the whole calendar year. Inspired by July (https://github.com/e-hulten/july)\n\n## How to use\n\nPlot the whole year heatmap\n```\ndates = pd.date_range(start='2024-01-01', end='2024-12-31')\nvalues = np.random.randint(0, 10, size=len(dates))\nlesley.cal_heatmap(dates, values)\n```\n![calendar heatmap output example](https://raw.githubusercontent.com/mitbal/lesley/main/images/calendar_heatmap.png)\n\nPlot a single month\n```\ndates = pd.date_range(start='2024-01-01', end='2024-12-31')\nvalues = np.random.randint(0, 10, size=len(dates))\nlesley.month_plot(dates, values, 1)\n```\n![single month plot](https://raw.githubusercontent.com/mitbal/lesley/main/images/month_plot.png)\n\nPlot all month in single year\n```\ndates = pd.date_range(start='2024-01-01', end='2024-12-31')\nvalues = np.random.randint(0, 10, size=len(dates))\nlesley.calendar_plot(dates, values, nrows=3)\n```\n![all month plot](https://raw.githubusercontent.com/mitbal/lesley/main/images/calendar_plot.png)\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "Plot calendar heatmap in python using Altair. Inspired from July",
    "version": "0.1.5",
    "project_urls": {
        "Repository": "https://github.com/mitbal/lesley.git"
    },
    "split_keywords": [
        "heatmap",
        " visualisation",
        " calendar",
        " daily",
        " matplotlib",
        " github plot",
        " month plot",
        " date plot",
        " plot",
        " plotting"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "2e46da2f232aabb9a82ce64f274120539f56d7dffa7e2389abb315aecb64f1b5",
                "md5": "21bcf694f218f723adadb0b3eb44ce67",
                "sha256": "9c6006566b71232702c4dd266a159383840fc21c7f23663be412a4c992be777f"
            },
            "downloads": -1,
            "filename": "lesley-0.1.5-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "21bcf694f218f723adadb0b3eb44ce67",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.11",
            "size": 3809,
            "upload_time": "2024-12-31T17:51:45",
            "upload_time_iso_8601": "2024-12-31T17:51:45.581800Z",
            "url": "https://files.pythonhosted.org/packages/2e/46/da2f232aabb9a82ce64f274120539f56d7dffa7e2389abb315aecb64f1b5/lesley-0.1.5-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "32aaa79d96051027f6340b97c1e8a8ffeea8fd0d2d631f6fbe67e3f58f45a2f4",
                "md5": "31cafdad5baaace4fcfa59171794fb80",
                "sha256": "a20d360926922822e858a08a8c21bffc5b9069d87553ffc80c18f44d9fd2d4cd"
            },
            "downloads": -1,
            "filename": "lesley-0.1.5.tar.gz",
            "has_sig": false,
            "md5_digest": "31cafdad5baaace4fcfa59171794fb80",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.11",
            "size": 3624,
            "upload_time": "2024-12-31T17:51:48",
            "upload_time_iso_8601": "2024-12-31T17:51:48.050524Z",
            "url": "https://files.pythonhosted.org/packages/32/aa/a79d96051027f6340b97c1e8a8ffeea8fd0d2d631f6fbe67e3f58f45a2f4/lesley-0.1.5.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-12-31 17:51:48",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "mitbal",
    "github_project": "lesley",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "lesley"
}
        
Elapsed time: 0.55331s