Skip to content

Latest commit

 

History

History

004-project-templating-with-itmpl

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Start A New Project In Seconds With iTmpl

iTmpl is an extensible project templating tool written in Python. It's great for creating new projects from scratch, or for generating new files for existing projects.

It comes with a few built-in templates, which we'll use in this video. You can also create your own templates. The video shows you how to do that, and how to run arbitrary Python code in your templates.

For more information, watch the video.

Following along

First, install iTmpl in the recommended way - via pipx:

pip install pipx
pipx install itmpl

To find your iTmpl templates directory, run:

itmpl config get extra_templates_dir

This will print the path to the directory. You can use this directory to store your own templates.

To use the fastapi-project template in this video, copy the fastapi-project folder from this repository into your iTmpl templates directory.