DEV Community

Cover image for Fenv Module for Generate a folder, establish a virtual environment with a single command.
watchakorn-18k
watchakorn-18k

Posted on • Edited on

Fenv Module for Generate a folder, establish a virtual environment with a single command.

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

Installation

To install Fenv, simply run the following command:

pip install fenv
Enter fullscreen mode Exit fullscreen mode

Usage

Fenv makes it easy to get started with a new Python project by providing an all-in-one solution. Here's how to use it:

  1. Create a new project folder:
fenv -new project_folder
Enter fullscreen mode Exit fullscreen mode
  1. Activate the virtual environment:

for windows

cd project_folder
source env/bin/activate
Enter fullscreen mode Exit fullscreen mode

for linux

cd project_folder
source env/bin/activate
Enter fullscreen mode Exit fullscreen mode

Build

python setup.py sdist bdist_wheel
Enter fullscreen mode Exit fullscreen mode

Testing

pip install --editable .
Enter fullscreen mode Exit fullscreen mode

Conclusion

Fenv is a powerful tool for managing virtual environments and creating basic Python files. With its simple and efficient design, it's the perfect solution for developers who want to streamline their workflow and focus on coding. Get started today and see the difference Fenv can make in your Python development process!

Top comments (0)