Code Monkey home page Code Monkey logo

simple-python-project-creator's Introduction

Python Project Creator

This script helps you to create a new Python project with a specific Python version and a virtual environment on windows.

Usage

  1. Copy the project_config.py.sample file to project_config.py and edit the values in the file to your liking. The values in the file will be used as default values when creating a new project. You can also edit the values later when creating a new project.
  2. Run the script with python main.py.
  3. You will be asked to enter the name of your new project. Type the name and press Enter.
  4. Confirm the name of your project by typing y and pressing Enter.
  5. The script will then display a list of Python versions found in your PATH. Each version will be displayed with an index, the version number, and the path.
  6. Enter the index of the Python version you want to use for your project and press Enter.
  7. If the directory for the project already exists, the script will notify you and stop. If not, it will proceed to create the directory structure for your project.
  8. The script will ask you if you want to create a .gitignore file. If you want to create one, type y and press Enter. The script will download a standard Python .gitignore file from GitHub.
  9. The script will then use the selected Python version to create a virtual environment in your project directory.
  10. Finally, the script will ask you if you want to open the created project in VS Code. If you want to open it, type y and press Enter.

Requirements

  • Windows
  • Python 3.6 or higher
  • Access to the internet (for downloading the .gitignore file)
  • VS Code (if you want to open the project in VS Code)

Troubleshooting

If you encounter any errors while running the script, the error message will be printed to the console. If you can't resolve the issue, please open an issue on GitHub.

simple-python-project-creator's People

Contributors

tom-jm03 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.