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
Installing
$ pip install nft
Running
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 test.java
Which created the following file:
/*------------------------------------- test.java temp_project by Daniel Richards (ddrichar@ucsc.edu) Copyright © 2019 Daniel Richards. All rights reserved. --------------------------------------*/ import java.util.*; import java.lang.*; import java.io.*; 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)
README.md (markdown)
README.rst (restructured text)
Any of these can be run as follows:
$ nft README.md
NOTE
If you want to reenter your name or email or recompile the list of templates (if you added a new template) use:
$ nft setup
License
See ./LICENSE
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file nft-2.7.tar.gz
.
File metadata
- Download URL: nft-2.7.tar.gz
- Upload date:
- Size: 5.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.20.1 setuptools/40.7.3 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a485ebd5f270573444744f3f38aa7f6e38cd1dc016a1e7e9385ea76397b62348 |
|
MD5 | d1353ccd1a7ed52583df71fbeed98f9c |
|
BLAKE2b-256 | 1da52d8e4eb1b271f706c1a75cdb8d707cf724f95d719ee5266d9a07802bb1d8 |