Giter Site home page Giter Site logo

xml2kinto's Introduction

xml2kinto

Synchronizes an XML file with a Kinto collection.

To run it, make sure you have Python and virtualenv, and run:

$ make update-blocklist-file update-schemas
$ make sync

This will update the Stage instance by default. If you want to run the script against another Kinto endpoint, you can specify it using the KINTO_SERVER variable.

Example

$ make sync KINTO_SERVER=http://localhost:8888/v1

xml2kinto's People

Contributors

magopian avatar mozmark avatar natim avatar tarekziade avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

mozmark pzb

xml2kinto's Issues

add a simple verifier

After the script ran, we want to count items in Kinto and verify we have the right number.

--server option

Something like:

$ xml2kinto --server https://kinto.dev.mozaws.net/
  • add a --server option so we can point the script to the right Kinto
  • expose the value as an environment variable so it's easy to change when "make sync" runs
  • document the option in README.rst for Ops

Handle --auth-type requests like CLI parameter

Today we can only use xml2kinto with BasicAuth as per #11
It would be interesting to let people use FxA or other Authentication scheme.

Something like this:

xml2kinto --auth-type fxa-bearer --auth 'email:password'

Keep the blockID

The blockId is used to be able to generate the URL for more information about the blocked item.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.