datasette-plot


Namedatasette-plot JSON
Version 0.1.0 PyPI version JSON
download
home_page
SummaryObservable Plot Datasette plugin
upload_time2023-12-21 19:11:27
maintainer
docs_urlNone
authorAlex Garcia
requires_python>=3.8
licenseApache-2.0
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # datasette-plot

[![PyPI](https://img.shields.io/pypi/v/datasette-plot.svg)](https://pypi.org/project/datasette-plot/)
[![Changelog](https://img.shields.io/github/v/release/datasette/datasette-plot?include_prereleases&label=changelog)](https://github.com/datasette/datasette-plot/releases)
[![Tests](https://github.com/datasette/datasette-plot/workflows/Test/badge.svg)](https://github.com/datasette/datasette-plot/actions?query=workflow%3ATest)
[![License](https://img.shields.io/badge/license-Apache%202.0-blue.svg)](https://github.com/datasette/datasette-plot/blob/main/LICENSE)

A Datasette plugin for making data visualizations with [Observable Plot](https://observablehq.com/plot/) .

<img width="600px" src="https://datasette-cloud-assets.s3.amazonaws.com/blog/2023/datasette-plot/hero.jpeg"/>

## Installation

Install this plugin in the same environment as Datasette.

```bash
datasette install datasette-plot
```

## Usage

Once installed, table pages and SQL query pages will have a new "Show plot" button that will open the `datasette-plot`.

<img width="600px" src="https://datasette-cloud-assets.s3.amazonaws.com/blog/2023/datasette-plot/table-2.jpeg"/>

Current, `datasette-plot` only supports a few [visualization marks](https://observablehq.com/plot/features/marks) from Plot, including dot, line, area, bar, and more.

<video width=600 controls autoplay type="video/mp4" style="display: block; margin: 0 auto" >
  <source src="https://datasette-cloud-assets.s3.amazonaws.com/blog/2023/datasette-plot/dsc-plot-02.mp4" type="video/mp4">
    Your browser does not support the video tag.
</video>

Use the `Link to this plot` URL to share visualization with others. The link will have your plot options encoded in the URL.

## Development

To set up this plugin locally, first checkout the code. Then create a new virtual environment:

```bash
cd datasette-plot
python3 -m venv venv
source venv/bin/activate
```

Now install the dependencies and test dependencies:

```bash
pip install -e '.[test]'
```

To run the tests:

```bash
pytest
```

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "datasette-plot",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": "",
    "keywords": "",
    "author": "Alex Garcia",
    "author_email": "",
    "download_url": "https://files.pythonhosted.org/packages/b9/ae/adecc1443dc08784c4d0349b595e9ecd1bfef4c06390a5950dea83f691bd/datasette-plot-0.1.0.tar.gz",
    "platform": null,
    "description": "# datasette-plot\n\n[![PyPI](https://img.shields.io/pypi/v/datasette-plot.svg)](https://pypi.org/project/datasette-plot/)\n[![Changelog](https://img.shields.io/github/v/release/datasette/datasette-plot?include_prereleases&label=changelog)](https://github.com/datasette/datasette-plot/releases)\n[![Tests](https://github.com/datasette/datasette-plot/workflows/Test/badge.svg)](https://github.com/datasette/datasette-plot/actions?query=workflow%3ATest)\n[![License](https://img.shields.io/badge/license-Apache%202.0-blue.svg)](https://github.com/datasette/datasette-plot/blob/main/LICENSE)\n\nA Datasette plugin for making data visualizations with [Observable Plot](https://observablehq.com/plot/) .\n\n<img width=\"600px\" src=\"https://datasette-cloud-assets.s3.amazonaws.com/blog/2023/datasette-plot/hero.jpeg\"/>\n\n## Installation\n\nInstall this plugin in the same environment as Datasette.\n\n```bash\ndatasette install datasette-plot\n```\n\n## Usage\n\nOnce installed, table pages and SQL query pages will have a new \"Show plot\" button that will open the `datasette-plot`.\n\n<img width=\"600px\" src=\"https://datasette-cloud-assets.s3.amazonaws.com/blog/2023/datasette-plot/table-2.jpeg\"/>\n\nCurrent, `datasette-plot` only supports a few [visualization marks](https://observablehq.com/plot/features/marks) from Plot, including dot, line, area, bar, and more.\n\n<video width=600 controls autoplay type=\"video/mp4\" style=\"display: block; margin: 0 auto\" >\n  <source src=\"https://datasette-cloud-assets.s3.amazonaws.com/blog/2023/datasette-plot/dsc-plot-02.mp4\" type=\"video/mp4\">\n    Your browser does not support the video tag.\n</video>\n\nUse the `Link to this plot` URL to share visualization with others. The link will have your plot options encoded in the URL.\n\n## Development\n\nTo set up this plugin locally, first checkout the code. Then create a new virtual environment:\n\n```bash\ncd datasette-plot\npython3 -m venv venv\nsource venv/bin/activate\n```\n\nNow install the dependencies and test dependencies:\n\n```bash\npip install -e '.[test]'\n```\n\nTo run the tests:\n\n```bash\npytest\n```\n",
    "bugtrack_url": null,
    "license": "Apache-2.0",
    "summary": "Observable Plot Datasette plugin",
    "version": "0.1.0",
    "project_urls": {
        "CI": "https://github.com/datasette/datasette-plot/actions",
        "Changelog": "https://github.com/datasette/datasette-plot/releases",
        "Homepage": "https://github.com/datasette/datasette-plot",
        "Issues": "https://github.com/datasette/datasette-plot/issues"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "8502a4b4d5fa3e2e305f20b967ebe53249ccea23d680dff17daffc552641770b",
                "md5": "73ad283a1a706c0a5109cf50128f97af",
                "sha256": "088eabe1424b4529282da2d6ab4886344fed07b44f6e118dbfe8cbcb598cc91f"
            },
            "downloads": -1,
            "filename": "datasette_plot-0.1.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "73ad283a1a706c0a5109cf50128f97af",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 109050,
            "upload_time": "2023-12-21T19:11:25",
            "upload_time_iso_8601": "2023-12-21T19:11:25.630418Z",
            "url": "https://files.pythonhosted.org/packages/85/02/a4b4d5fa3e2e305f20b967ebe53249ccea23d680dff17daffc552641770b/datasette_plot-0.1.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "b9aeadecc1443dc08784c4d0349b595e9ecd1bfef4c06390a5950dea83f691bd",
                "md5": "71b23097630842e6a4282db570872909",
                "sha256": "f53de0a222b9daa00e31727ec153eee33c20595cc7bcf67ccd780f5a2da4a268"
            },
            "downloads": -1,
            "filename": "datasette-plot-0.1.0.tar.gz",
            "has_sig": false,
            "md5_digest": "71b23097630842e6a4282db570872909",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 109544,
            "upload_time": "2023-12-21T19:11:27",
            "upload_time_iso_8601": "2023-12-21T19:11:27.541140Z",
            "url": "https://files.pythonhosted.org/packages/b9/ae/adecc1443dc08784c4d0349b595e9ecd1bfef4c06390a5950dea83f691bd/datasette-plot-0.1.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-12-21 19:11:27",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "datasette",
    "github_project": "datasette-plot",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "datasette-plot"
}
        
Elapsed time: 0.59600s