Script generation method and device

A script generation and script technology, applied in the script generation method and system field, can solve the problems of high difficulty, non-standard script format, increased difficulty, etc., and achieve the effect of lowering the threshold, improving generation efficiency, and reducing generation difficulty

Active Publication Date: 2017-07-04
BEIJING JINGDONG SHANGKE INFORMATION TECH CO LTD +1
View PDF10 Cites 6 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] The above-mentioned traditional methods of artificially generating python scripts will have high requirements for writers, for example, they need to be proficient in various rules, comments, function methods, parameter references, etc. in the python language, and programmers need to frequently check The method and usage in the python language will lead to the complexity of script generation, which will reduce the efficiency of script generation and increase the difficulty of generation
In addition, due to the inconsistency of everyone's script writing style in practical applications, the script generation format cannot be unified
[0004] It can be seen that the existing python script generation method has problems such as low efficiency, high difficulty, and irregular script format.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Script generation method and device
  • Script generation method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0018] In order to make the purpose, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments.

[0019] The core idea of ​​the present invention is: use the metadata database to provide users with various data resources needed for script writing, so as to reduce the information that needs to be manually written when generating scripts, and at the same time, based on the metadata database, automatically generate The relevant information of the script generates a corresponding script, and automatically detects it before the script is generated, so that the generation efficiency of the python script can be improved, the script format can be standardized, and it is easy to implement.

[0020] figure 1 It is a schematic flow diagram of the method of Embodiment 1 of the present invention, as figure 1 As shown, this embodiment mainly inclu...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a script generation method and a script generation device, wherein the method comprises the steps of triggering a preparation process of script generation after a python program writing command of a legal user is received; triggering the user to select a field name, a table name and a condition of each sub-service logic corresponding to a current to-be-generated script and a joining symbol for joining the sub-service logics by use of a meta-database, and generating a corresponding service logic script; and carrying out a joint debugging test on the service logic script, if the test passes, generating a corresponding script file according to the service logic script. By use of the script generation method and the script generation device, the generation efficiency of a python script can be improved, a script format is specified and the script generation method and the script generation device are easy to realize.

Description

technical field [0001] The invention relates to computer application technology, in particular to a script generation method and system. Background technique [0002] At present, in distributed big data (hadoop), the processing process of extract-transform-load (ETL, Extract-Transform-Load) data is mainly completed by using python scripts. Currently, the generation of python scripts needs to be manually written by programmers. [0003] The above-mentioned traditional method of artificially generating python scripts will have high requirements for writers, for example, it is necessary to be proficient in various rules, comments, function methods, parameter references, etc. in the python language, and programmers need to frequently check The method and usage in the python language will lead to the complexity of script generation, thereby reducing the efficiency of script generation and increasing the difficulty of generation. In addition, due to the fact that everyone's scri...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F9/44
CPCG06F8/31
Inventor 马建军
Owner BEIJING JINGDONG SHANGKE INFORMATION TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products