Skip to content

Fenv

Fenv is a simple and efficient tool to help you manage your virtual environments and create basic Python files with a single command. With Fenv, you can quickly generate a new project folder, establish a virtual environment within that folder, and simultaneously create the essential basic Python files all in one go. This tool is ideal for developers who frequently work on multiple Python projects and want a simple, streamlined solution for managing virtual environments.

Features

  • Generate a new project folder with a single command
  • Quickly establish a virtual environment within the project folder
  • Simultaneously create essential basic Python files
  • Ideal for developers who work on multiple Python projects
  • Add black for format python
  • Packages can be installed and uninstalled and added to files. requirements.txt at the same time
  • Clear packages back to the default packages
  • etc

Install

pip install fenv

Linux and macOS

pip install fenv

or

pip install --upgrade fenv

Windows

If you are using Windows, you can install Fenv using pipx, which is a tool that allows you to install and run Python applications in isolated environments. This is a great way to install Fenv, as it will not interfere with any other Python applications you may have installed on your system.

Note: pipx only works with Python 3.6+.

First, install pipx using the following command:

py -m pip install --user pipx
py -m pipx ensurepath

Then, install Fenv using pipx:

pipx install fenv

Note: ensurepath ensures that the application directory is on your $PATH. You may need to restart your terminal for this update to take effect.

You may need to restart your terminal for this update to take effect.

PyPi

https://pypi.org/project/Fenv/

Command

usage: fenv [-h] [-v]  ...

Usage:
  fenv <command>

Commands:

    new          Create a new project
    install      Install the package and install the
                 package via requirements.txt
    uninstall    Uninstall packages
    update       Package to file requirements.txt update
                 furthermore, update the readme.md file's
                 tree path.
    onlyenv      Create only virtualenv and no create
                 base file
    clean        Clean delete all packages in requirements.txt out
    activate     Activate the virtual environment if the terminal is not supported will show a hint.

General Options:
  -h, --help     Show this help message and exit
  -v, --version  check version fenv

Layout

└── test/
        └──.vscode/
                └──settings.json
        └──env_test/
                └── Lib/
                └── Scripts
                └── .gitignore
                └── pyvenv.cfg
        └──.gitignore
        └──main.py
        └──readme.md
        └──requirements.txt