Code Monkey home page Code Monkey logo

sensorsdata-yaml2excel's Introduction

YAML文件约定

 # ----- 文档说明 -----
 # 文档结构格式:
 首页: # <-所在页面
   浏览: # <-要监测的用户行为
     $MPViewScreen: # <-使用的事件英文名
       screenName: 首页 # <-事件属性及传值
       biStateBegin: # <-如果事件属性有多种可以取的值时,使用list形式全部列出
         - true: 浏览前已经收藏
         - false: 浏览前未收藏
   点击登录按钮:
     click:
       screenName: 首页
       buttonName:
         - null: 当前按钮上显示的文案
 # -------------------

将被转为:

页面 数据采集时机 事件英文名 属性英文名 属性取值(以eg.开头为示例) 取该值的条件/取值说明
首页 浏览 $MPViewScreen screenName 首页
biStateBegin TRUE 浏览前已经收藏
FALSE 浏览前未收藏
点击登录按钮 click screenName 首页
buttonName 当前按钮上显示的文案

用法

# 查看说明
python sa_convert.py -h

# 转换YAML为EXCEL文件,并竖向合并前4列的单元格
python sa_convert.py <yaml_file_path> -f <output_file_name> -l 4

当前目录下会生成解析后的Excel文件。

sensorsdata-yaml2excel's People

Contributors

gbcdef avatar

Stargazers

 avatar

Watchers

 avatar  avatar

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.