Skip to content
This repository has been archived by the owner on Mar 5, 2024. It is now read-only.
/ Fenv Public archive

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

Notifications You must be signed in to change notification settings

watchakorn-18k/Fenv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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
graph TD
    A[fenv] --> B[fenv/fenv.py]
    A --> C[fenv/state_env.py]
    A --> D[fenv/manage_file.py]
    A --> E[fenv/env_all.py]
Loading
graph TD
    A[fenv] --> B[fenv/fenv.py]
    A --> C[fenv/state_env.py]
    A --> D[fenv/manage_file.py]
    A --> E[fenv/env_all.py]
Loading

Docs

Docs Fenv Docs Fenv

Install

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.

Quick Start

Quick Start

fenv new <project_folder>

Command

$ fenv -h

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.
    env      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.
    clone        Clone data from repositories and create virtualenv.


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

Install via setup.py

pip install --editable .

Build

python setup.py sdist bdist_wheel

Volta planing

Volta/Fenv

PyPi

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

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!

Alternate Text

Changelog

0.0.12.4

0.0.12.3

  • Add option --add for fenv new for install packages after created virtualenv such fenv new test_1 --add=[request,flet] or fenv new test_1 --add=request,flet or fenv new test_1 --add=request,flet or fenv new test_1 --add request,flet

0.0.12.2

  • Add command fenv clone <git url>
  • Optimize code to match case

0.0.12.1

0.0.12.0

  • An improved string using f-string format @yassine20011 pull/5/files
  • Add installation instructions for Windows users using pipx @yassine20011 pull/5/files

0.0.11.9

  • Add command more fenv deactivate Command hint to deactivate virtual environment with folder
  • Add command more fenv activate Command hint to activate virtual environment with folder

0.0.11.8

  • Fix error ModuleNotFoundError: No module named 'dotenv' and not show version fenv

0.0.11.7

  • fenv uninstall <package> can remove packages and package dependencies all in one Tested [Windows]
    • before
    • after
  • Add command fenv clean to clean packages left lib basic files pass test [Windows] and [Linux]
  • Added fev.cfg file
  • Support command all in Linux

0.0.11.6

  • Fix bug create readme.md change env_directory() to name

0.0.11.5

  • Added Tree path in md after generating projects , can you try command fenv update
  • Added create file .gitignore
  • Edit readme.md small changes
  • Fix if an env folder does not exist, the modified fenv install <packages> command will prompt you to confirm whether you would like to create a new env. If you choose not to create a new env, the installation will proceed using python main
  • Added command fenv install alone will install file requirements.txt in directory current
  • Added after use fenv env created settings then activate env one time

0.0.11.4

  • Fix bugs small

0.0.11.3

  • Fix bugs settings in .vscode
  • Fix bugs line 609 and 624

0.0.11.2

  • Fix bugs small

0.0.11.1

  • Change new pattern command -onlyenv to onlyenv

0.0.10

  • Add option -onlyenv for create only virtualenv without base file all
  • Add command install for install package and add module to file requirements.txt

0.0.9

  • Release 0.0.9