疏远的托管对象生成器

emogenerator的Python项目详细描述


Author:Jonathan Wight <jwight@mac.com>
description:Estranged Managed Object Generator

目标

python工具为coredata对象模型生成objective-c包装器。emogenerator的灵感来自jonathan“wolf”rentzsch的mogenerator工具。

emogenerator还在生成的代码中使用特殊的注释“guard”部分,允许您将代码与自动生成的代码混合和匹配。emogenerator还使用成熟且维护良好的模板系统(genshi)生成objective-c源代码。

安装

使用setuptools

$ easy_install -U emogenerator

用法

在包含coredata.xcdatamodel(或.xcdatamodeld)文件的目录中:

Usage: emogenerator [options] [INPUT]

Options:
--versionshow program’s version number and exit
-h, --helpshow this help message and exit
--momc=MOMCThe momc compiler program to use when converting xcdatamodel files to mom files (default: ‘/Developer/usr/bin/momc’)
-i INPUT, --input=INPUT
The input xcdatamodel or mom file (type is inferred by file extension).
-o OUTPUT, --output=OUTPUT
Output directory for generated files.
-t TEMPLATE, --template=TEMPLATE
Directory containing templates.
-c CONFIG, --config=CONFIG
Path to config plist file (values will be passed to template engine as a dictionary)
-v, --verboseset the log level to INFO
--loglevel=LOGLEVEL
set the log level, 0 = no log, 10+ = level of logging
--logfile=LOG_FILE
File to log messages to. If - or not provided then stdout is used.

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java置换相关算法   在Java中读取/打开文本文件   java为什么这段代码不适用于CodeEval?   java如何将日历转换为JSON   从txt文件中读取字符串并将其存储到java中的字符数组中   字符编码Java ResourceBundles umlauts搞砸了   java为什么hashmap会根据总大小而不是填充的存储桶调整大小   java如何将Excel单元格中的数字字符串读取为字符串(而不是数字)?   java Guava的LocalCache无法使用,为什么?   java有没有办法强制JVM在单个处理器或内核上运行   java Eclipse不安装软件   将字节转换为java字符串(可能是汉字)   Java正则表达式:提取函数名   JavaTestNG:如何从多个类中指定测试方法顺序?