Code Monkey home page Code Monkey logo

bulk-update-tool's Introduction

bulk_update_tool

This repository contains Python scripts to bulk update LwM2M object XML files.

Scripts import a library (lwm2mv10_lib) that is generated with generateDS tool. The library is provided readily generated. To re-generate this library, follow generateDS documentation how to install generateDS and then issue command:

  • python3 generateDS.py -o lwm2mv10_lib.py LWM2M.xsd

where LWM2M.xsd is the schema file which can be downloaded from OMA SpecWorks.

The generated library provides all the boiler plate code to parse LwM2M object XML file into a type safe tree model. In your bulk update script you can use the functionality of the library to edit and validate the tree model and finally write it into a XML file, all with a reasonably small number of code lines.

Notice: it is recommended to use Python v3. As described in generateDS documentation, generateDS has a dependency on lxml library which need to installed first. In Ubuntu the following commands can be used to install all required dependencies:

  • sudo apt-get install python3
  • sudo apt-get install python3-pip
  • pip3 install lxml

bulk-update-tool's People

Contributors

vai-harrihytonen avatar dirtyha avatar jpradocueva avatar

Watchers

James Cloos avatar  avatar  avatar Open Mobile Alliance avatar Sean Mcilroy avatar

Forkers

seanmcilroy29

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.