{"id":14063909,"url":"https://github.com/an-dr/Env","last_synced_at":"2025-07-29T17:30:52.336Z","repository":{"id":159529407,"uuid":"230663719","full_name":"an-dr/Env","owner":"an-dr","description":"A Powershell version of Python's venv","archived":false,"fork":false,"pushed_at":"2023-05-22T19:38:17.000Z","size":1226,"stargazers_count":16,"open_issues_count":3,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-04T02:35:16.293Z","etag":null,"topics":["environment","modules","powershell","shell","venv"],"latest_commit_sha":null,"homepage":"","language":"PowerShell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/an-dr.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2019-12-28T20:34:05.000Z","updated_at":"2024-08-09T02:02:58.000Z","dependencies_parsed_at":null,"dependency_job_id":"d39beec8-7b7c-4ad5-9944-a4966545e699","html_url":"https://github.com/an-dr/Env","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"purl":"pkg:github/an-dr/Env","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/an-dr%2FEnv","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/an-dr%2FEnv/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/an-dr%2FEnv/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/an-dr%2FEnv/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/an-dr","download_url":"https://codeload.github.com/an-dr/Env/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/an-dr%2FEnv/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267726720,"owners_count":24134892,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-29T02:00:12.549Z","response_time":2574,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["environment","modules","powershell","shell","venv"],"created_at":"2024-08-13T07:03:34.264Z","updated_at":"2025-07-29T17:30:51.815Z","avatar_url":"https://github.com/an-dr.png","language":"PowerShell","funding_links":["https://paypal.me/4ndr/1eur"],"categories":["PowerShell"],"sub_categories":[],"readme":"# Env\n\n\u003cimg src=\"docs/README/logo.png\" width=\"250\"\u003e\n\nPowershell 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.\n\n[@PowershellGallery](https://www.powershellgallery.com/packages/Env)\n\n## Installation\n\n```powershell\nInstall-Module -Name Env\n```\n\n## Usage\n\nThe module consists of functions:\n\n- Basic operations:\n    - `New-Environment [Name] [Path]` - *psenv* is used when the name is not provided\n    - `Enable-Environment [Path]`\n    - `Disable-Environment [Name]`\n    - `Get-Environment`\n    - `Test-DirIsEnv {Dir}`\n- Module management:\n    - `Add-EnvironmentModule {EnvironmentPath} {Module}`\n    - `Remove-EnvironmentModule {EnvironmentPath} {Module}`\n    - `Get-EnvironmentModules {EnvironmentPath}`\n\n`{}` - Mandatory argument\n`[]` - Optional argument\n\nThe suggested workflow is following:\n\n1. **Create** an Environment using `New-Environment`\n2. **Modify** you environment in the newly created folder as you wish\n3. **Activate** the environment when you need it using `Enable-Environment`. You CAN activate several environments with unique names at once\n4. **Deactivate** an environment using `Disable-Environment`. To get list of all activate environments use `Get-Environment`\n\n## Examples\n\n| How to...                             | Demo                                                              |\n|---------------------------------------|-------------------------------------------------------------------|\n|...create a new environment            |\u003cimg src=\"docs/README/demo_new_environment.gif\" width=\"700\"\u003e       |\n|...add a new module to the environment | \u003cimg src=\"docs/README/demo_add_environmentmodule.gif\" width=\"700\"\u003e|\n|...enable and disable the environment  |\u003cimg src=\"docs/README/demo_enable_environment.gif\" width=\"700\"\u003e    |\n\n\n## License\n\nThis work is licensed under the terms of the MIT license.\n\nFor a copy, see: [LICENSE](LICENSE)\n\n- site:    https://agramakov.me\n- e-mail:  mail@agramakov.me\n\n## Support\n\n[Buy me a cup of tea](https://paypal.me/4ndr/1eur)\n\nAny amount will motivate me to develop the project. Thanks you!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fan-dr%2FEnv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fan-dr%2FEnv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fan-dr%2FEnv/lists"}