kinto-wizard is a tool to configure a kinto server from an YAML file.
Project description
kinto-wizard
kinto-wizard is a tool that lets you setup an entire Kinto server from a Yaml file, or inspect an existing server and output a Yaml file.
You can define Kinto objects (bucket, collection, groups, records) and configure their attributes and permissions.
Installation
Use pip:
$ pip install kinto-wizard
How to use it?
Load
kinto-wizard load \
--server https://kinto-writer.stage.mozaws.net/v1 \
--auth admin:credentials \
new-config.yml
The load command also accepts these options:
--data - Load data attributes.
--permissions: - Load objects permissions.
--collections - Load collections.
--groups - Load groups.
--records - Load collections` records.
--attachments - Load the attachments files from the specified folder
--full - Combination of all flags (default).
Dump
kinto-wizard dump \
--server https://kinto-writer.stage.mozaws.net/v1 \
--auth admin:credentials \
> current-config.yml
The dump command also accepts these options:
--data - Include buckets, collections and groups data (attachments, schemas, display fields, uischema etc.).
--permissions: - Include objects permissions.
--collections - Include collections.
--groups - Include groups.
--records - Include collections` records.
--attachments - Save the attachments files into the specified folder
--full - Combination of all flags (default).
Validate a dump
The way Kinto works is by letting you change a collection schema but won’t enforce the new schema for existing records.
When you dump a collection and its records, you can end-up having records that Kinto won’t let you upload back because the schema changed and they are invalid with the current schema.
This can lead to unexpected behavior on loading time which is a bit cumbersome because depending of the size of the file you are loading, it can takes a long time before getting an actual error.
In order to fix the file before loading, you can use the validate command that would give you the error Kinto would return if you were to load the file on a Kinto server.
kinto-wizard validate current-config.yml
Development
Contributors
Rémy Hubscher <rhubscher@mozilla.com>
Mathieu Leplatre <mathieu@mozilla.com>
Gabriela Surita <gabsurita@gmail.com>
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 kinto_wizard-6.0.0.tar.gz.
File metadata
- Download URL: kinto_wizard-6.0.0.tar.gz
- Upload date:
- Size: 35.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d92430db57396c870daa3dac94d11417a35e788d2af07a7f3fdd2249b616e890
|
|
| MD5 |
5201116fd26d693ff9284393f945603d
|
|
| BLAKE2b-256 |
d9b255275a37326e03f4ac324ebd60e5d55f0d9f92acdd6bebe122f6149ef9d5
|
Provenance
The following attestation bundles were made for kinto_wizard-6.0.0.tar.gz:
Publisher:
publish.yml on Kinto/kinto-wizard
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
kinto_wizard-6.0.0.tar.gz -
Subject digest:
d92430db57396c870daa3dac94d11417a35e788d2af07a7f3fdd2249b616e890 - Sigstore transparency entry: 487428758
- Sigstore integration time:
-
Permalink:
Kinto/kinto-wizard@7f9a03a8a7875a1132d8fefddb585bbb1b631d31 -
Branch / Tag:
refs/tags/6.0.0 - Owner: https://github.com/Kinto
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@7f9a03a8a7875a1132d8fefddb585bbb1b631d31 -
Trigger Event:
push
-
Statement type:
File details
Details for the file kinto_wizard-6.0.0-py3-none-any.whl.
File metadata
- Download URL: kinto_wizard-6.0.0-py3-none-any.whl
- Upload date:
- Size: 11.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ee96a8ff09f81b7e2ee31384fc1e6c0d9e76666c8997f8b5d8f59ccdd06d1f32
|
|
| MD5 |
904cfa4ddaab7e5615d3ea9c18635b84
|
|
| BLAKE2b-256 |
8d4859c8699afdd9fc841eaf0413317220e3def7e36a38a59a6712e017e82c3b
|
Provenance
The following attestation bundles were made for kinto_wizard-6.0.0-py3-none-any.whl:
Publisher:
publish.yml on Kinto/kinto-wizard
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
kinto_wizard-6.0.0-py3-none-any.whl -
Subject digest:
ee96a8ff09f81b7e2ee31384fc1e6c0d9e76666c8997f8b5d8f59ccdd06d1f32 - Sigstore transparency entry: 487428777
- Sigstore integration time:
-
Permalink:
Kinto/kinto-wizard@7f9a03a8a7875a1132d8fefddb585bbb1b631d31 -
Branch / Tag:
refs/tags/6.0.0 - Owner: https://github.com/Kinto
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@7f9a03a8a7875a1132d8fefddb585bbb1b631d31 -
Trigger Event:
push
-
Statement type: