Skip to main content

A tool for quickly creating a New File form a Template

Project description

A python script for quickly creating a New File form a Template


$ pip install nft


Just like that, we should be in business. NFT works something like the touch command but instead of creating empty files, nft creates boilerplate files from the template. The first time you run nft, it will ask a few questions to better fill out the template. Try it out with something like:

$ nft

Which created the following file:

    by Daniel Richards (
    Copyright © 2019 Daniel Richards. All rights reserved.

import java.util.*;
import java.lang.*;

public class test
        public static void main(String args[])
                System.out.println("New Java file created from template");

Other File Types

NFT can make the following kinds of source files:

  • C files and headers

  • Java

  • Python

  • Ruby

  • Shell (bash and Csh)

NFT can also build non-source files. The standard README types are included:

  • README (txt)

  • (markdown)

  • README.rst (restructured text)

Any of these can be run as follows:

$ nft


If you want to reenter your name or email or recompile the list of templates (if you added a new template) use:

$ nft setup




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

nft-2.7.tar.gz (5.0 kB view hashes)

Uploaded source

Supported by

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