Welcome, guest | Sign In | My Account | Store | Cart

Notice! PyPM is being replaced with the ActiveState Platform, which enhances PyPM’s build and deploy capabilities. Create your free Platform account to download ActivePython or customize Python with the packages you require and get automatic updates.

Download
ActivePython

diecutter is unavailable in PyPM, because there aren't any builds for it in the package repositories. Click the linked icons to find out why.

 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
Windows (64-bit)
Mac OS X (10.5+)
Linux (32-bit)
Linux (64-bit)
 
Links

Templates as a service.

diecutter exposes an API where you manage templates as resources. The most common operation is to POST data to templates in order to retrieve generated files.

Files and directories are supported. Directories are rendered as archives.

Note

Diecutter is under active development: some (killer) features have not been implemented yet, or they are not mature. Check milestones and vision for details.

That said, features documented below actually work, so give it a try!

Example

GET raw content of a template:

System Message: ERROR/3 (<string>, line 30)

Unknown directive type "code-block".

.. code-block:: text

   $ curl -X GET http://diecutter.io/api/greetings.txt
   {{ greetings|default('Hello') }} {{ name }}!

POST data to the template and retrieve generated content:

System Message: ERROR/3 (<string>, line 37)

Unknown directive type "code-block".

.. code-block:: text

   $ curl -X POST -d name=world http://diecutter.io/api/greetings.txt
   Hello world!


Subscribe to package updates

What does the lock icon mean?

Builds marked with a lock icon are only available via PyPM to users with a current ActivePython Business Edition subscription.

Need custom builds or support?

ActivePython Enterprise Edition guarantees priority access to technical support, indemnification, expert consulting and quality-assured language builds.

Plan on re-distributing ActivePython?

Get re-distribution rights and eliminate legal risks with ActivePython OEM Edition.