Skip to main content

kinto-wizard is a tool to configure a kinto server from an YAML file.

Project description

kinto-wizard

pypi ci

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:

  • --attachments - Load the attachments files from the specified folder

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

  • --records - Include collections` records.

  • --attachments - Save the attachments files into the specified folder

  • --full - Combination of data and records.

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

See contributing docs

Contributors

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

kinto_wizard-5.1.1.tar.gz (34.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

kinto_wizard-5.1.1-py3-none-any.whl (11.2 kB view details)

Uploaded Python 3

File details

Details for the file kinto_wizard-5.1.1.tar.gz.

File metadata

  • Download URL: kinto_wizard-5.1.1.tar.gz
  • Upload date:
  • Size: 34.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for kinto_wizard-5.1.1.tar.gz
Algorithm Hash digest
SHA256 e5ca311c78a255461337a0bf0fc9bad7cf35d1d0861e89a234b1ad25463b1fd0
MD5 9bc29ae9965ff76f66e0cc4c8cabe531
BLAKE2b-256 5b3c3a55a2ccd2ff8fd4d33b1bebe5b6bef4060cdebb3a118dfd11e662b8753e

See more details on using hashes here.

Provenance

The following attestation bundles were made for kinto_wizard-5.1.1.tar.gz:

Publisher: publish.yml on Kinto/kinto-wizard

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file kinto_wizard-5.1.1-py3-none-any.whl.

File metadata

  • Download URL: kinto_wizard-5.1.1-py3-none-any.whl
  • Upload date:
  • Size: 11.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for kinto_wizard-5.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 79bf8dca4c044f79fc0d7d30f4749598874a3357aa9b8bfc021fdd4538a68bc6
MD5 1241ab90b524a11f831f8a1e7b1c477f
BLAKE2b-256 0e46c7861c36ca37937e1420cbfd33642b23ba05bd54765b156cd663c946d97a

See more details on using hashes here.

Provenance

The following attestation bundles were made for kinto_wizard-5.1.1-py3-none-any.whl:

Publisher: publish.yml on Kinto/kinto-wizard

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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