# Overview

# Copyright (c) 2009 Matt Harrison

## Intro

Poachplate is a script for generating python scripts. Really it just generates boilerplate content, such as:

• setup.py
• bin/script
• scriptlib/__init__.py
• test/test.py

Some of the content is just "FILL IN", but this can be fixed by setting the appropriate values in a ~/.config/poachplate.ini file, that looks like this:

[properties]
author : FILL IN
email : FILL IN
version : 0.1


## Installation

Unpack the tarball and run:

python setup.py install


## Invocation

Invoke the script like so:

poachplate FooBar


And it will create the following "Compromise Layout", where there is a script but the implementation goes in scriptlib/__init__.py (or where you want to put it). The idea is to have a script in the PATH that is executable (so people can run it), as well as a package in PYTHONPATH, so people can import/test/reuse the code.

Here's the layout:

FooBar/
INSTALL
MANIFEST.in
setup.py
bin/
foobar # small wrapper
foobarlib/
__init__.py # put implementation here
meta.py # version/author/email
test/
test.py


## Todo

• Be verbose during creating, ie: creating "FooBar/"....
• Use templates in files for content
• Fix issues people have