Skip to content

Upgrade Datasette instance configuration to handle new features

License

Notifications You must be signed in to change notification settings

datasette/datasette-upgrade

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Upgrade Datasette instance configuration to handle new features

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages