anartisticengineer / pygen

A python script for automatically generating other python project folders

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PYGEN

Command-line python project generator

NOTE: these instructions presume prior knowledge of basic command line instructions and (obviously) Python already being installed.

Pygen creates a simple file structure for new Python projects at a directory of your choice! To get started, follow these steps (this assumes prior knowledge of basic command line functions):

  1. Clone this repo and change directory into the root 'pygen' folder. So the command line should be something like this:
    /your/path/pygen
  2. In that same level as the root project folder, create a new .env file. When created, add the following line inside the file:
    DEST_PATH=Your_Directory_Here
    Your_Directory_Here will instead be the ABSOLUTE PATH of where you want to save your folder at. (No quotation marks are needed).
    e.g.: DEST_PATH=C:\Documents\PythonProjects
  3. In the command line again, run the package installer with the line:
    pip install -r requirements.txt
    This will install any necessary python libraries (in this case, only the python-dotenv library is required. This library is needed to pull the info from the .env file!
  4. Now, with the command line at the root directory of 'pygen', run the command:
    python pygen your-folder-name
    It will then save a new directory at the specified path from the DEST_PATH variable with the name of "your-folder-name"
  5. After being run, the program will output a path (after the line saying "You can peep the file here). Navigate to the new folder to find a new project waiting for you! :D

About

A python script for automatically generating other python project folders

License:MIT License


Languages

Language:Python 100.0%