Upgrade Datasette instance configuration to handle new features
Project description
datasette-upgrade
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d2e3a32164550928a58bccbf0b058b39a4a6e80bf7d3fb616a3213f60a65d3f0
|
|
| MD5 |
026240849c5a345122480fdc1d1eebcf
|
|
| BLAKE2b-256 |
3e7b9ae415fd465718776dafe80cd900691da4bc275ca6a0984adda59cef0048
|
File details
Details for the file datasette_upgrade-0.1a0-py3-none-any.whl.
File metadata
- Download URL: datasette_upgrade-0.1a0-py3-none-any.whl
- Upload date:
- Size: 7.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3f4085cc1d4d69a483c32895f386e9b817642c24495e03f401ab4a86ce409391
|
|
| MD5 |
719413d5388c57aba48268168210fb86
|
|
| BLAKE2b-256 |
f75096733ec36617f7ad242452b58d53bed7cf3972a3dc95840261dab4906218
|