Env
A Powershell version of Python's venv
Install / Use
/learn @an-dr/EnvREADME
Env
<img src="docs/README/logo.png" width="250">Powershell module using Create and Enable/Disable local modules with a specific format called Environments. Use it if you you want to implement some functionality applicable only for a specific location, e.g. a function Organize-PhotosByDate that can be stored in your Photos directory.
Installation
Install-Module -Name Env
Usage
The module consists of functions:
- Basic operations:
New-Environment [Name] [Path]- psenv is used when the name is not providedEnable-Environment [Path]Disable-Environment [Name]Get-EnvironmentTest-DirIsEnv {Dir}
- Module management:
Add-EnvironmentModule {EnvironmentPath} {Module}Remove-EnvironmentModule {EnvironmentPath} {Module}Get-EnvironmentModules {EnvironmentPath}
{} - Mandatory argument
[] - Optional argument
The suggested workflow is following:
- Create an Environment using
New-Environment - Modify you environment in the newly created folder as you wish
- Activate the environment when you need it using
Enable-Environment. You CAN activate several environments with unique names at once - Deactivate an environment using
Disable-Environment. To get list of all activate environments useGet-Environment
Examples
| How to... | Demo | |---------------------------------------|-------------------------------------------------------------------| |...create a new environment |<img src="docs/README/demo_new_environment.gif" width="700"> | |...add a new module to the environment | <img src="docs/README/demo_add_environmentmodule.gif" width="700">| |...enable and disable the environment |<img src="docs/README/demo_enable_environment.gif" width="700"> |
License
This work is licensed under the terms of the MIT license.
For a copy, see: LICENSE
- site: https://agramakov.me
- e-mail: mail@agramakov.me
Support
Any amount will motivate me to develop the project. Thanks you!
Related Skills
node-connect
344.1kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
96.8kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
344.1kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
344.1kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
