datasette-chronicle


Namedatasette-chronicle JSON
Version 0.2.1 PyPI version JSON
download
home_page
SummaryUse sqlite-chronicle with tables in Datasette
upload_time2023-12-08 06:12:59
maintainer
docs_urlNone
authorSimon Willison
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-chronicle

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

Use [sqlite-chronicle](https://github.com/simonw/sqlite-chronicle) with tables in Datasette

## Installation

Install this plugin in the same environment as Datasette.
```bash
datasette install datasette-chronicle
```
## Usage

Once installed, users with the `enable-chronicle` and `disable-chronicle` permissions (granted to the `root` user by default) will have access to new table action menu options for enabling and disabling chronicle tracking for a table.

Tables that have had chronicle tracking enabled will now support a new `?_since=X` query string parameter on the table page, which will filter for just rows that have been inserted or updated since the specified chronicle version.

See the [sqlite-chronicle documentation](https://github.com/simonw/sqlite-chronicle/blob/main/README.md) for more details on what this is and how it works.

## Development

To set up this plugin locally, first checkout the code. Then create a new virtual environment:
```bash
cd datasette-chronicle
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-chronicle",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": "",
    "keywords": "",
    "author": "Simon Willison",
    "author_email": "",
    "download_url": "https://files.pythonhosted.org/packages/22/b3/e74fd0769ee59625de128fbb4f54aa69c09d71f54786919d8812d0dc4c53/datasette-chronicle-0.2.1.tar.gz",
    "platform": null,
    "description": "# datasette-chronicle\n\n[![PyPI](https://img.shields.io/pypi/v/datasette-chronicle.svg)](https://pypi.org/project/datasette-chronicle/)\n[![Changelog](https://img.shields.io/github/v/release/datasette/datasette-chronicle?include_prereleases&label=changelog)](https://github.com/datasette/datasette-chronicle/releases)\n[![Tests](https://github.com/datasette/datasette-chronicle/workflows/Test/badge.svg)](https://github.com/datasette/datasette-chronicle/actions?query=workflow%3ATest)\n[![License](https://img.shields.io/badge/license-Apache%202.0-blue.svg)](https://github.com/datasette/datasette-chronicle/blob/main/LICENSE)\n\nUse [sqlite-chronicle](https://github.com/simonw/sqlite-chronicle) with tables in Datasette\n\n## Installation\n\nInstall this plugin in the same environment as Datasette.\n```bash\ndatasette install datasette-chronicle\n```\n## Usage\n\nOnce installed, users with the `enable-chronicle` and `disable-chronicle` permissions (granted to the `root` user by default) will have access to new table action menu options for enabling and disabling chronicle tracking for a table.\n\nTables that have had chronicle tracking enabled will now support a new `?_since=X` query string parameter on the table page, which will filter for just rows that have been inserted or updated since the specified chronicle version.\n\nSee the [sqlite-chronicle documentation](https://github.com/simonw/sqlite-chronicle/blob/main/README.md) for more details on what this is and how it works.\n\n## Development\n\nTo set up this plugin locally, first checkout the code. Then create a new virtual environment:\n```bash\ncd datasette-chronicle\npython3 -m venv venv\nsource venv/bin/activate\n```\nNow install the dependencies and test dependencies:\n```bash\npip install -e '.[test]'\n```\nTo run the tests:\n```bash\npytest\n```\n",
    "bugtrack_url": null,
    "license": "Apache-2.0",
    "summary": "Use sqlite-chronicle with tables in Datasette",
    "version": "0.2.1",
    "project_urls": {
        "CI": "https://github.com/datasette/datasette-chronicle/actions",
        "Changelog": "https://github.com/datasette/datasette-chronicle/releases",
        "Homepage": "https://github.com/datasette/datasette-chronicle",
        "Issues": "https://github.com/datasette/datasette-chronicle/issues"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "3eb418bcf551992358173ff3ed341d75943fd40033accf8812b1a33139fb14c4",
                "md5": "953bf4629521130eeb4337a9194183db",
                "sha256": "1da9f2819e4726fcd692f5bbd7464c962730b20811675e96fa98687260cda7cb"
            },
            "downloads": -1,
            "filename": "datasette_chronicle-0.2.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "953bf4629521130eeb4337a9194183db",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 9227,
            "upload_time": "2023-12-08T06:12:57",
            "upload_time_iso_8601": "2023-12-08T06:12:57.977469Z",
            "url": "https://files.pythonhosted.org/packages/3e/b4/18bcf551992358173ff3ed341d75943fd40033accf8812b1a33139fb14c4/datasette_chronicle-0.2.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "22b3e74fd0769ee59625de128fbb4f54aa69c09d71f54786919d8812d0dc4c53",
                "md5": "0c5174ab29ae011eae877b8c3fad293c",
                "sha256": "3c850e7349400741c1074de384ce8f7f936727a9f1fa226a4b4e4f0fb83de0fa"
            },
            "downloads": -1,
            "filename": "datasette-chronicle-0.2.1.tar.gz",
            "has_sig": false,
            "md5_digest": "0c5174ab29ae011eae877b8c3fad293c",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 8892,
            "upload_time": "2023-12-08T06:12:59",
            "upload_time_iso_8601": "2023-12-08T06:12:59.607848Z",
            "url": "https://files.pythonhosted.org/packages/22/b3/e74fd0769ee59625de128fbb4f54aa69c09d71f54786919d8812d0dc4c53/datasette-chronicle-0.2.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-12-08 06:12:59",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "datasette",
    "github_project": "datasette-chronicle",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "datasette-chronicle"
}
        
Elapsed time: 0.13319s