datasette-upgrade


Namedatasette-upgrade JSON
Version 0.1a0 PyPI version JSON
download
home_page
SummaryUpgrade Datasette instance configuration to handle new features
upload_time2024-01-06 04:35:20
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-upgrade

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

Upgrade Datasette instance configuration to handle new features

## Installation

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

The plugin currently provides one command, which will split an old style `metadata.json` or `metadata.yml` file - which contains both metadata and plugin configuration and permissions, into a Datasette 1.0+ `metadata.yml` file and a `datasette.yml` file.

```bash
datasette upgrade metadata-to-config metadata.json -m metadata.yml -c datasette.yml
```
This will leave `metadata.json` in place, but will write out `metadata.yml` and `datasette.yml` as two new files.

## Development

To set up this plugin locally, first checkout the code. Then create a new virtual environment:
```bash
cd datasette-upgrade
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-upgrade",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": "",
    "keywords": "",
    "author": "Simon Willison",
    "author_email": "",
    "download_url": "https://files.pythonhosted.org/packages/3e/7b/9ae415fd465718776dafe80cd900691da4bc275ca6a0984adda59cef0048/datasette-upgrade-0.1a0.tar.gz",
    "platform": null,
    "description": "# datasette-upgrade\n\n[![PyPI](https://img.shields.io/pypi/v/datasette-upgrade.svg)](https://pypi.org/project/datasette-upgrade/)\n[![Changelog](https://img.shields.io/github/v/release/datasette/datasette-upgrade?include_prereleases&label=changelog)](https://github.com/datasette/datasette-upgrade/releases)\n[![Tests](https://github.com/datasette/datasette-upgrade/workflows/Test/badge.svg)](https://github.com/datasette/datasette-upgrade/actions?query=workflow%3ATest)\n[![License](https://img.shields.io/badge/license-Apache%202.0-blue.svg)](https://github.com/datasette/datasette-upgrade/blob/main/LICENSE)\n\nUpgrade Datasette instance configuration to handle new features\n\n## Installation\n\nInstall this plugin in the same environment as Datasette.\n```bash\ndatasette install datasette-upgrade\n```\n## Usage\n\nThe plugin currently provides one command, which will split an old style `metadata.json` or `metadata.yml` file - which contains both metadata and plugin configuration and permissions, into a Datasette 1.0+ `metadata.yml` file and a `datasette.yml` file.\n\n```bash\ndatasette upgrade metadata-to-config metadata.json -m metadata.yml -c datasette.yml\n```\nThis will leave `metadata.json` in place, but will write out `metadata.yml` and `datasette.yml` as two new files.\n\n## Development\n\nTo set up this plugin locally, first checkout the code. Then create a new virtual environment:\n```bash\ncd datasette-upgrade\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": "Upgrade Datasette instance configuration to handle new features",
    "version": "0.1a0",
    "project_urls": {
        "CI": "https://github.com/datasette/datasette-upgrade/actions",
        "Changelog": "https://github.com/datasette/datasette-upgrade/releases",
        "Homepage": "https://github.com/datasette/datasette-upgrade",
        "Issues": "https://github.com/datasette/datasette-upgrade/issues"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "f75096733ec36617f7ad242452b58d53bed7cf3972a3dc95840261dab4906218",
                "md5": "719413d5388c57aba48268168210fb86",
                "sha256": "3f4085cc1d4d69a483c32895f386e9b817642c24495e03f401ab4a86ce409391"
            },
            "downloads": -1,
            "filename": "datasette_upgrade-0.1a0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "719413d5388c57aba48268168210fb86",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 7336,
            "upload_time": "2024-01-06T04:35:19",
            "upload_time_iso_8601": "2024-01-06T04:35:19.326717Z",
            "url": "https://files.pythonhosted.org/packages/f7/50/96733ec36617f7ad242452b58d53bed7cf3972a3dc95840261dab4906218/datasette_upgrade-0.1a0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "3e7b9ae415fd465718776dafe80cd900691da4bc275ca6a0984adda59cef0048",
                "md5": "026240849c5a345122480fdc1d1eebcf",
                "sha256": "d2e3a32164550928a58bccbf0b058b39a4a6e80bf7d3fb616a3213f60a65d3f0"
            },
            "downloads": -1,
            "filename": "datasette-upgrade-0.1a0.tar.gz",
            "has_sig": false,
            "md5_digest": "026240849c5a345122480fdc1d1eebcf",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 7297,
            "upload_time": "2024-01-06T04:35:20",
            "upload_time_iso_8601": "2024-01-06T04:35:20.881469Z",
            "url": "https://files.pythonhosted.org/packages/3e/7b/9ae415fd465718776dafe80cd900691da4bc275ca6a0984adda59cef0048/datasette-upgrade-0.1a0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-01-06 04:35:20",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "datasette",
    "github_project": "datasette-upgrade",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "datasette-upgrade"
}
        
Elapsed time: 0.50688s