Skip to content

This is a Python-based Command Line Interface (CLI) template. It's designed to be interactive and user-friendly, providing a variety of commands for users to interact with the system. You can customize this template to suit your needs by modifying the global variables, helper functions, and command functions.

License

Notifications You must be signed in to change notification settings

Aydinhamedi/Python-CLI-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python CLI Template

License: MIT

This project is a template for a Python Command Line Interface (CLI) application. It includes a cmd file that checks the Python version, installs packages, and more. The Python file is a colorful CLI template that you can easily add commands to and customize. It includes some base commands as well. The CLI also includes error handling, which can provide detailed error messages when something goes wrong.

Example usage:

Example

Note
Please note that this image is for a project using the template.

Note
Please note that this code uses my print_color
for more info go to https://github.com/Aydinhamedi/Python-color-print.

Note
Please note that there is a new toolkit version
more info on https://github.com/Aydinhamedi/Python-CLI-toolkit.

Warning
Please note that a part of this doc is generated by Ai (GPT-4).

Features

  • Python version check
  • Package installation
  • Easy command addition and customization
  • Colorful CLI interface
  • Base commands included
  • Error handling

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

  • Python 3.x

Installation

  1. Clone the repo
    git clone https://github.com/Aydinhamedi/Python-CLI-template

Usage

After installation, you can run the CLI application with the CLI.cmd and customize the CLI with Data\CLI_main.py file

This will start the CLI application where you can use the available commands.

License

Distributed under the MIT License. See LICENSE for more information.

About

This is a Python-based Command Line Interface (CLI) template. It's designed to be interactive and user-friendly, providing a variety of commands for users to interact with the system. You can customize this template to suit your needs by modifying the global variables, helper functions, and command functions.

Topics

Resources

License

Stars

Watchers

Forks