Skip to main content

Gestionnaire d'environnement virtuel

Project description

zpenv

Langue/Language

English Version

Informations

Outil multi-plateforme de gestion d'environnement virtuel Python pour la création, l'édition, la suppression ou le travail avec un environnement virtuel.
Tout se passe directement en console.
Il est possible de migrer ces anciens environnements virtuels sur cette solution.

Prerequis

  • Python 3

Installation

pip install zpenv

Utilisation

Affichage de toutes les commandes disponibles

[user@host ~]$ zpenv -h

Installation d'un environnement

[user@host ~]$ zpenv --install [NomEnvironnement]
  • --name = Donner un nom à notre environnement
  • --tag = Ajouter des tags (séparés avec ,)
  • --comment = Ajouter un commentaire
  • --projectfolder = Spécifier le dossier du projet (emplacement du code)
  • --prompt = Spécifier le message dans le prompt (D'autres options sont disponibles)

Suppression d'un environnement

[user@host ~]$ zpenv --remove [NomEnvironnement]

--nopurge = Ne pas supprimer le dossier de l'environnement Le dossier du projet ne sera jamais supprimé


Migration d'un environnement

Permet de récupérer la gestion d'un environnement créé par venv ou virtualenv par exemple.

[user@host ~]$ zpenv --migrate [CheminVersEnvironnement]

Si aucun chemin n'est spécifié, l'app prendra le répertoire courant.

Lister les environnements disponibles

[user@host ~]$ zpenv --list
- Project1
- Project2

Afficher les informations d'un environnement

[user@host ~]$ zpenv --info [NomEnvironnement]
Environment name:        Project1
Environment path:        C:\Users\zephyroff\Desktop\ENV
Environment version:     3.10.8
Environment tag:         ProjectConsole,TabBar
Project Folder:          C:\Users\zephyroff\Desktop\ENVCode

Ouverture d'un environnement

Pour activer l'environnement virtuel et commencer à travailler dessus, il faut l'ouvrir.

[user@host ~]$ zpenv --open [NomDeLEnvironnement]

--shell = Pour entrer directement dans le shell Python


Gestion de package

Installer un package

[user@host ~]$ zpenv --installmodule [package]

ou pour installer des packages depuis un fichier requirement

[user@host ~]$ zpenv --requirement [RequirementFile]

Supprimer un package

[user@host ~]$ zpenv --removemodule [package]

Mettre à jour un package

[user@host ~]$ zpenv --upgrademodule [package]

Installation de pip

[user@host ~]$ zpenv --installpip



EN - Informations

Cross-platform Python virtual environment management tool for creating, editing, deleting, or working with a virtual environment.
Everything happens directly in console.
It is possible to migrate these old virtual environments to this solution.

Prerequisites

-Python 3

Installation

pip install zpenv

Use

Showing all available commands

[user@host ~]$ zpenv -h

Installing an environment

[user@host ~]$ zpenv --install [EnvironmentName]
  • --name = Give a name to our environment
  • --tag = Add tags (separated with ,)
  • --comment = Add a comment
  • --projectfolder = Specify project folder (code location) (Other options are available)

Deleting an environment

[user@host ~]$ zpenv --remove [EnvironmentName]

--nopurge = Don't delete environment folder The project folder will never be deleted


Migrating an environment

Allows to recover the management of an environment created by venv or virtualenv for example.

[user@host ~]$ zpenv --migrate [PathToEnvironment]

If no path is specified, the app will take the current directory.

List available environments

[user@host ~]$ zpenv --list
-Project1
-Project2

Display environment information

[user@host ~]$ zpenv --info [EnvironmentName]
Environment name: Project1
Environment path: C:\Users\zephyroff\Desktop\ENV
Environment version: 3.10.8
Environment tag: ProjectConsole,TabBar
Project Folder: C:\Users\zephyroff\Desktop\ENVCode

Opening an environment

To activate the virtual environment and start working on it, you must open it.

[user@host ~]$ zpenv --open [EnvironmentName]

--shell = To enter the Python shell directly


Package management

Install a package

[user@host ~]$ zpenv --installmodule [package]

or to install packages from a requirement file

[user@host ~]$ zpenv --requirement [RequirementFile]

Delete a package

[user@host ~]$ zpenv --removemodule [package]

Update a package

[user@host ~]$ zpenv --upgrademodule [package]

Install pip

[user@host ~]$ zpenv --installpip

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

zpenv-1.3.1.tar.gz (11.5 kB view hashes)

Uploaded Source

Built Distribution

zpenv-1.3.1-py3-none-any.whl (10.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page