Generate a folder, establish a virtual environment with a single command.
Project description
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]
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]
Docs
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
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!
Changelog
0.0.12.4
-
Optimize
readme.md
-
Fix bug if file readme.md already exists without being generated from
fenv
-
Fix It bug fenv clean deletes everything even
fenv
Fenv/issues/11 delete everything exceptfenv
module -
Change new pattern command
onlyenv
toenv
-
Added an option in case you can't think of a project name. such
fenv new
0.0.12.3
- Add option
--add
forfenv new
for install packages after created virtualenv suchfenv new test_1 --add=[request,flet]
orfenv new test_1 --add=request,flet
orfenv new test_1 --add=request,flet
orfenv new test_1 --add request,flet
0.0.12.2
0.0.12.1
-
Remove
fenv deactivate
from pull/6 @yassine20011 -
Clean code env_all.py , manage_file.py @yassine20011
-
Fix in file
state_env.py
pull/6 @yassine20011
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![](https://i.imgur.com/H7MURw3.gif)
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()
toname
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 modifiedfenv install <packages>
command will prompt you to confirm whether you would like to create a newenv
. If you choose not to create a newenv
, the installation will proceed usingpython 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
toonlyenv
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file Fenv-0.0.12.4.tar.gz
.
File metadata
- Download URL: Fenv-0.0.12.4.tar.gz
- Upload date:
- Size: 16.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 87de6aba175e18a212808338fa20c79c5eaf27d7b42f71bc53c9ac91f7ec268b |
|
MD5 | e31c2d604973e4903bd7c1dbc8f552b5 |
|
BLAKE2b-256 | d66f1c797f036ff792eb34875f43abbca3477950d9ba612e90c7fef2a8b16ab4 |
File details
Details for the file Fenv-0.0.12.4-py3-none-any.whl
.
File metadata
- Download URL: Fenv-0.0.12.4-py3-none-any.whl
- Upload date:
- Size: 18.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 043b0f04b4d5e35a809b9bd4c643136e2d3837aad1febf879c30d8e41bd1a628 |
|
MD5 | 1e1ce6454d5d05243c61c3d058d06bc5 |
|
BLAKE2b-256 | 8743067402b1b2d09dd901018d1aefe4fa798a43ca3b97c08a5275b0781c98a1 |