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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file datasette-upgrade-0.1a0.tar.gz.

File metadata

  • Download URL: datasette-upgrade-0.1a0.tar.gz
  • Upload date:
  • Size: 7.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for datasette-upgrade-0.1a0.tar.gz
Algorithm Hash digest
SHA256 d2e3a32164550928a58bccbf0b058b39a4a6e80bf7d3fb616a3213f60a65d3f0
MD5 026240849c5a345122480fdc1d1eebcf
BLAKE2b-256 3e7b9ae415fd465718776dafe80cd900691da4bc275ca6a0984adda59cef0048

See more details on using hashes here.

File details

Details for the file datasette_upgrade-0.1a0-py3-none-any.whl.

File metadata

File hashes

Hashes for datasette_upgrade-0.1a0-py3-none-any.whl
Algorithm Hash digest
SHA256 3f4085cc1d4d69a483c32895f386e9b817642c24495e03f401ab4a86ce409391
MD5 719413d5388c57aba48268168210fb86
BLAKE2b-256 f75096733ec36617f7ad242452b58d53bed7cf3972a3dc95840261dab4906218

See more details on using hashes here.

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