===================================
Utility scripts for generateDS.py
===================================
This document provides an explanation of and instructions on the use
of several utilities that are in this subdirectory and that preform
helpful tasks related to ``generateDS.py``.
Note that these utility scripts do not install automatically. You
can find them in the ``generateds/utirs`` directory; and you can
either copy them to some directory on your path or create a
(symbolic) link to them from some directory on your path.
show_schema_hierarchy.py
==========================
XML schemas often import other schemas which import still other
schemas etc. to an arbitrary depth. If you feel it might be helpful
to learn which schemas are being imported by your schema and
recursively which schema *they* import, then this utility might be
helpful.
Run ``python show_schema_hierarchy.py --help`` for usage notes.
collect_schema_locations.py
=============================
This utility scans the top level schema and produces a JSON file
containing directives. This directives file can be used by
``batch_generate.py`` to run ``generateDS.py`` to generate a module
for each of the schema references that is extracted.
Run ``python collect_schema_locations.py --help`` for usage notes.
There are some notes in the ``generateDS.py`` documentation.
Here is a sample of the directives file that is produced::
{
"directives": [
{
"schema": "DtsInstrumentBox.xsd",
"outfile": "DtsInstrumentBox.py",
"outsubfile": "",
"flags": ""
},
{
"schema": "ProdmlCommon.xsd",
"outfile": "ProdmlCommon.py",
"outsubfile": "",
"flags": "-f --member-specs=list --no-namespace-defs"
},
{
"schema": "FiberOpticalPath.xsd",
"outfile": "FiberOpticalPath.py",
"outsubfile": "",
"flags": ""
}
]
}
batch_generate.py
===================
``batch_generate.py`` runs ``generateDS.py`` to do batch generation
of multiple modules. ``batch_generate.py`` determines which modules
to generate from which schemas by reading directives from a JSON
file.
Run ``python batch_generate.py --help`` for usage notes. And, there
are a few notes in the ``generateDS.py`` documentation.
The directive file
--------------------
The directives file can be produced by running
``collect_schema_locations.py``, or it can be written by hand.
You can also add command line options to the "flags" entries and can
add the name of sub-class modules to be generated to the
"outsubfile" entries.
Comments in the directives file -- The directives file is a JSON
file, and JSON does not support comments. However, for use with
``batch_generate.py``, the input directives file can contain
comments. Any line whose first non-whitespace characters are "//"
is considered a comment and is discarded by ``batch_generate.py``
before the remaining contents are parsed by the JSON parser.
See the notes in this file on ``collect_schema_locations.py`` for a
sample of the directives file.
Options and configuration
---------------------------
Each of the long-name command line options (the ones preceded by
"--", excluding ``--config``) can be placed in a configuration file
and referenced with the ``--config`` command line option. Here is a
sample of a configuration file::
[generateds-batch]
verbose = true
command = ./generateDS.py
flags = -f --member-specs=dict
in-path = energistics/prodml/v2.0/xsd_schemas
out-path = OnePer3
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
PyPI 官网下载 | generateDS-2.33.11.tar.gz (279个子文件)
setup.cfg 59B
generateds_gui.glade 91KB
test1.h 665B
test1a.h 196B
test1b.h 125B
generateDS.html 195KB
generateds_tutorial.html 50KB
generateds_gui_notes.html 14KB
librarytemplate_howto.html 11KB
test1.i 60B
MANIFEST.in 8KB
LICENSE 1KB
member_specs_generate 172B
member_specs_run 65B
PKG-INFO 1KB
PKG-INFO 1KB
generateDS.py 353KB
peoplesup.py 225KB
out1_sup.py 193KB
out2_sup.py 193KB
people_procincl1_sup.py 173KB
people_procincl2_sup.py 173KB
to_etree1_sup.py 163KB
to_etree2_sup.py 163KB
prefix_classname1_sup.py 150KB
people_api.py 134KB
validate_simpletypes1_sup.py 134KB
validate_simpletypes2_sup.py 133KB
generateds_gui.py 130KB
generateds_gui.py 130KB
extensions1_sup.py 99KB
mapcleanname1_sup.py 94KB
defaults_coverage1_sup.py 86KB
ipo1_sup.py 84KB
ipo2_sup.py 84KB
defaults_cases1_sup.py 82KB
simpletypes_other1_sup.py 72KB
simpletypes_other2_sup.py 72KB
mixedcontent1_sup.py 69KB
anywildcard1_sup.py 69KB
anywildcard2_sup.py 69KB
cleanupname1_sup.py 67KB
defaults_cases_always1_sup.py 62KB
nested_def1_sup.py 60KB
generateds_gui_session.py 60KB
generateds_gui_session.py 60KB
anonymous_type1_sup.py 59KB
anonymous_type2_sup.py 59KB
simplecontent_restriction1_sup.py 57KB
annotations1_sup.py 55KB
annotations2_sup.py 55KB
abstract_type1_sup.py 55KB
abstract_type2_sup.py 55KB
derived_types1_sup.py 52KB
attr_groups1_sup.py 49KB
attr_groups2_sup.py 49KB
anysimpletype1_sup.py 49KB
rem_dup_elems1_sup.py 48KB
oneperType03_2One.py 48KB
oneperType02_2One.py 48KB
oneperType02_1One.py 48KB
oneperType03_1One.py 48KB
oneperType01_2One.py 48KB
oneperType01_1One.py 48KB
simpletype_memberspecs1_sup.py 48KB
cdata1_sup.py 47KB
reference_simpletype1_sup.py 46KB
recursive_simpletype1_sup.py 44KB
recursive_simpletype2_sup.py 44KB
oneperType00_2One.py 43KB
oneperType00_1One.py 43KB
testsuper.py 40KB
outline.py 39KB
catalogtest1_sup.py 38KB
catalogtest2_sup.py 38KB
no_namespace_defs1_sup.py 37KB
enum_import00_2.py 35KB
enum_import01_2.py 33KB
disable_xml_super1_sup.py 33KB
generateDS.py 33KB
enum_import02_2.py 33KB
process_includes.py 30KB
member_specs_api.py 29KB
xmlbehavior.py 28KB
po.py 22KB
generatedssuper.py 20KB
to_etree1_sub.py 13KB
to_etree2_sub.py 13KB
peoplesub.py 13KB
upcase_names_appl.py 12KB
people_appl1.py 12KB
people_procincl1_sub.py 12KB
people_procincl2_sub.py 12KB
prefix_classname1_sub.py 11KB
gends_generate_sa.py 11KB
out1_sub.py 10KB
out2_sub.py 10KB
gends_extract_simple_types.py 10KB
gends_extract_simple_types.py 10KB
gends_extract_simple_types.py 10KB
共 279 条
- 1
- 2
- 3
资源评论
挣扎的蓝藻
- 粉丝: 13w+
- 资源: 15万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- VIVADO中UART IP核使用
- 【深度学习实际案例解析】深度学习实际案例解析
- 封装swagger组件,提供全新UI以及无状态登录接口调用解决方案
- 小龙坎支局2024年4月渠道积分核对数据.xlam
- onlyoffice搭建及与alist使用的view.html
- Quadcopter-UAV-attitude-estimation-linux常用命令大全demo
- Quadcopter-UAV-attitude-estimation-based-on-数据库课程设计
- pbdlib-python-master.zip
- 43904245495352013_base.apk
- 基于springboot+vue + redis的工作流审批系统
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功