Skip to main content

Upgrade Datasette instance configuration to handle new features

Project description

datasette-upgrade

PyPI Changelog Tests License

Upgrade Datasette instance configuration to handle new features

Installation

Install this plugin in the same environment as Datasette.

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.

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:

cd datasette-upgrade
python3 -m venv venv
source venv/bin/activate

Now install the dependencies and test dependencies:

pip install -e '.[test]'

To run the tests:

pytest

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

datasette-upgrade-0.1a0.tar.gz (7.3 kB view hashes)

Uploaded Source

Built Distribution

datasette_upgrade-0.1a0-py3-none-any.whl (7.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page