Skip to main content

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

Project description

kinto-wizard

pypi ci coverage

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.

Read more information about the file structure

Installation

The last release

pip install kinto-wizard

The development version

After having cloned the repo:

pip install -e .

How to use it?

Load

kinto-wizard load \
    --server https://kinto-writer.stage.mozaws.net/v1 \
    --auth admin:credentials \
    new-config.yml

Dump

kinto-wizard dump \
    --server https://kinto-writer.stage.mozaws.net/v1 \
    --auth admin:credentials \
    > current-config.yml

The dump also accepts a --full option that will output object data and collection records.

Changelog

This document describes changes between each past release.

3.0.0 (2018-10-17)

Breaking changes

  • Upgrade to kinto-http.py 10.0 means that the batch will fail if one of the server responses has a 4XX status, use the --ignore-batch-4xx to keep the previous behaviour.

New features

  • Add an --ignore-batch-4xx option to explicitly ask for silent 4xx errors.

Bug fixes

  • Handle YAML date and datetime values. (#51)

Internal changes

2.4.0 (2018-05-23)

  • Add a --dry-run for the load command to see how many records would be deleted. (#46)

  • Add a --delete-record to delete the existing records that are not in the YAML file. (#47)

2.3.0 (2017-10-04)

  • Add --data and --records options to be able to dump objects data without dumping records. (#33)

2.2.0 (2017-09-01)

New features

  • Use asyncio to add parallelism to the load command (#18).

2.1.0 (2017-06-28)

New features

  • Add logger configuration for kinto-http.py (#26)

  • Add an option to force the update with a CLIENT_WINS strategy (#28)

  • Add an option to select the bucket or collection to export (#30)

2.0.0 (2017-05-22)

Breaking changes

  • Upgrade to kinto-http 8.0.0 with Python 3.5+ support.

  • The --full option of the dump command now outputs records (#16)

New features

  • The load command now supports records (#16)

1.0.0 (2016-11-22)

Initial version

  • Supports dumping/loading groups and permissions from/to a YAML file.

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-3.0.0.tar.gz (11.9 kB view details)

Uploaded Source

Built Distribution

kinto_wizard-3.0.0-py3-none-any.whl (13.7 kB view details)

Uploaded Python 3

File details

Details for the file kinto-wizard-3.0.0.tar.gz.

File metadata

  • Download URL: kinto-wizard-3.0.0.tar.gz
  • Upload date:
  • Size: 11.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.10.0 pkginfo/1.4.2 requests/2.18.4 setuptools/38.5.2 requests-toolbelt/0.8.0 tqdm/4.19.7 CPython/3.6.6

File hashes

Hashes for kinto-wizard-3.0.0.tar.gz
Algorithm Hash digest
SHA256 43fbe87a0a4737cc9ecc9da9b32b1b80e0269a7075f30a4b893a53a53b8c83b7
MD5 b8b9872ca77fb6438f61d99dbb88d17a
BLAKE2b-256 fed3b6628290609bb6e4e4e4e81eb9341745c39d763b07f2047e5adcd91397c9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: kinto_wizard-3.0.0-py3-none-any.whl
  • Upload date:
  • Size: 13.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.10.0 pkginfo/1.4.2 requests/2.18.4 setuptools/38.5.2 requests-toolbelt/0.8.0 tqdm/4.19.7 CPython/3.6.6

File hashes

Hashes for kinto_wizard-3.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ef402557fe0c55303cea0691df36278fda33d53821fa72e3c64cfee536d4cfb7
MD5 c6d11b9123a31cc20d18a54cf48ec81a
BLAKE2b-256 50ecfd8e37b32ba3e9d7cbae7ab1f4f84f7685a9ce05b3bf680eca812cf6bcb6

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