Skip to main content

Estranged Managed Object Generator

Project description

Author:

Jonathan Wight <jwight@mac.com>

description:

Estranged Managed Object Generator

Goal

Python tool to generate Objective-C wrappers for CoreData object models. emogenerator is inspired by Jonathan “Wolf” Rentzsch’s mogenerator tool.

emogenerator also uses special comment ‘guard’ sections in the generated code to allow you to mix and match your code with auto-generated code. emogenerator also uses a mature and well maintained template system (genshi) to generate Objective-C source.

Install

With setuptools:

$ easy_install -U emogenerator

Usage

In a directory containing a CoreData .xcdatamodel (or .xcdatamodeld) file:

Usage: emogenerator [options] [INPUT]

Options:
--version

show program’s version number and exit

-h, --help

show this help message and exit

--momc=MOMC

The 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, --verbose

set 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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

emogenerator-0.1.13.tar.gz (7.7 kB view details)

Uploaded Source

File details

Details for the file emogenerator-0.1.13.tar.gz.

File metadata

  • Download URL: emogenerator-0.1.13.tar.gz
  • Upload date:
  • Size: 7.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for emogenerator-0.1.13.tar.gz
Algorithm Hash digest
SHA256 9fcf4c23466235778de73453d115d23ce47932dc52bcde26a6c32e61a0cac434
MD5 5709fe464485c0fda58825a488245a1c
BLAKE2b-256 f058f6d93e13044d53ad662ef9bc9230ab7b546c61fdefc60ff4611e0bb9f483

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page