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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file zpenv-1.3.1.tar.gz.

File metadata

  • Download URL: zpenv-1.3.1.tar.gz
  • Upload date:
  • Size: 11.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: nexus/0.5.0 CPython/3.10.6 Windows/10

File hashes

Hashes for zpenv-1.3.1.tar.gz
Algorithm Hash digest
SHA256 895fbee6611483eb5e9ab37a69cdb78aacb72c9bf492876664e6a11626758901
MD5 029aa8dea7b2ef9a80486d8e4b80a806
BLAKE2b-256 0e2fddb641b479f6e52b09403b4ac4d674101d9f9bb150673d66cee187575a87

See more details on using hashes here.

File details

Details for the file zpenv-1.3.1-py3-none-any.whl.

File metadata

  • Download URL: zpenv-1.3.1-py3-none-any.whl
  • Upload date:
  • Size: 10.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: nexus/0.5.0 CPython/3.10.6 Windows/10

File hashes

Hashes for zpenv-1.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 412b850c6558f64f0cdc6078676554e99b409919574dec7d69077f7eb89598cb
MD5 72801980e4cc5afd15a57b7dbc35fedf
BLAKE2b-256 c0ca33a9d212312c8f76a607d7de898f199c5f91b55d2c6b4afb985409054b9a

See more details on using hashes here.

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