Skip to main content

AMO-style routing for Kinto - with XML

Project description

https://img.shields.io/travis/mozilla-services/kinto-amo/master.svg https://img.shields.io/pypi/v/kinto-amo.svg https://coveralls.io/repos/mozilla-services/kinto-amo/badge.svg?branch=master

Return an XML views of the blocklists buckets compatible with the previous AMO one.

Install

pip install kinto-amo

Setup

In the Kinto project settings

kinto.includes = kinto_amo

# kinto.amo.addons = /buckets/blocklists/collections/addons
# kinto.amo.plugins = /buckets/blocklists/collections/plugins
# kinto.amo.gfx = /buckets/blocklists/collections/gfx
# kinto.amo.certificates = /buckets/blocklists/collections/certificates

You can setup other blocklists for preview for instance using a prefix:

kinto.includes = kinto_amo

kinto.amo.preview.addons = /buckets/blocklists-preview/collections/addons
kinto.amo.preview.plugins = /buckets/blocklists-preview/collections/plugins
kinto.amo.preview.gfx = /buckets/blocklists-preview/collections/gfx
kinto.amo.preview.certificates = /buckets/blocklists-preview/collections/certificates

kinto.amo.staging.addons = /buckets/staging/collections/addons
kinto.amo.staging.plugins = /buckets/staging/collections/plugins
kinto.amo.staging.gfx = /buckets/staging/collections/gfx
kinto.amo.staging.certificates = /buckets/staging/collections/certificates

You can then access their blocklist from the prefixed URL:

  • /v1/blocklist/3/{3550f703-e582-4d05-9a08-453d09bdfdc6}/47.0/

  • /v1/preview/3/{3550f703-e582-4d05-9a08-453d09bdfdc6}/47.0/

  • /v1/staging/3/{3550f703-e582-4d05-9a08-453d09bdfdc6}/47.0/

CHANGELOG

0.3.0 (2016-10-27)

  • Add the plugin version in the capability. (#15)

  • Enable creation of preview XML files from other collections. (#18)

0.2.0 (2016-05-19)

  • Update to kinto.core for compatibility with Kinto 3.0. This release is no longer compatible with Kinto < 3.0, please upgrade!

0.1.1 (2016-05-06)

  • Missing commit in previous release.

0.1.0 (2016-05-06)

New features

  • Supports metrics in the URL (#6)

  • Add a view to render the XML Blocklists file in versions 1, 2 and 3 (#3)

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-amo-0.3.0.tar.gz (13.1 kB view details)

Uploaded Source

Built Distribution

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

kinto_amo-0.3.0-py2.py3-none-any.whl (12.1 kB view details)

Uploaded Python 2Python 3

File details

Details for the file kinto-amo-0.3.0.tar.gz.

File metadata

  • Download URL: kinto-amo-0.3.0.tar.gz
  • Upload date:
  • Size: 13.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for kinto-amo-0.3.0.tar.gz
Algorithm Hash digest
SHA256 7cd1a0b8a6898581a32f1b9fa74ae54ecfdf339f72e840ce3d8027f728e1eaed
MD5 67851371d0fc31b883b16556b7ae3807
BLAKE2b-256 229e69d2f5126e7222c5b92cf76e9719d35174a1dc07f208a09a415a6917a281

See more details on using hashes here.

File details

Details for the file kinto_amo-0.3.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for kinto_amo-0.3.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 a477fcb0799f99e6d2dd1f0d78abdbe054694ea156de244f32a92d117a0f05f3
MD5 75e4f3d3b5c5a4a42cbb859d7e9a43bb
BLAKE2b-256 37c587d67f9d1ffa397cb78d7474578126c98cf7a4bcca628e99d0743cc650e4

See more details on using hashes here.

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