Skip to content

Latest commit

Β 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Project Template Generator

Easily set up a new Python project with a structured directory, virtual environment, and essential configuration files.

πŸš€ Installation

To install the Project Template Generator, simply run the following command in your terminal:

Make sure you have Python 3.6 or higher installed with pip. To check your Python and pip versions, run the following commands in your terminal:

python

python --version
pip --version

Python

pip install git+https://github.com/AR-SmartHelio/python_project_template.git

πŸ’Ό Usage

Once installed, run the following command in your terminal:

Make sure to give the absolute path to the directory where you want to create your project.

Python

generate_project "D:\test_project"

This will scaffold a project in the directory D:\test_project with the structure:

test_project/                      # The directory you provide
β”‚
β”œβ”€β”€ src/
β”‚   β”œβ”€β”€ main.py                    # Contains your main application code
β”‚   β”œβ”€β”€ utils.py                   # Sample utility functions
β”‚   └── consts.py                  # Constants for your project
β”‚
β”œβ”€β”€ tests/                         # Unit tests go here
β”‚
β”œβ”€β”€ data/
β”‚   β”œβ”€β”€ raw/                       # Raw data storage
β”‚   └── processed/                 # Processed data storage
β”‚
β”œβ”€β”€ notebooks/                     # Jupyter notebooks for analysis
β”‚
β”œβ”€β”€ docs/                          # Documentation (empty by default)
β”‚
β”œβ”€β”€ config.yaml                    # Configuration settings
β”œβ”€β”€ requirements.txt               # Project dependencies
β”œβ”€β”€ .gitignore                     # Specifies which files Git should ignore
β”œβ”€β”€ .flake8                        # flake8 linting config
└── pyproject.toml                 # black code formatter config

πŸ”₯ Bonus:

If git is accessible in your environment, the tool will also initialize a Git repository in the project directory and make an initial commit titled "Initial project setup."

Happy coding! πŸŽ‰

About

A tool to generate a Python project template

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages