A tool to create virtual environments using an embedded Python interpreter.
Project description
portableenv
portableenv is a Python CLI tool that allows you to create virtual environments using an embedded Python interpreter. This makes it easy to manage isolated Python environments without relying on the system-wide Python installation.
Features
- Seamless Virtual Environment Creation: Creates virtual environments using the embedded Python interpreter, ensuring portability and isolation from system-wide installations.
- Simple CLI Interface: Provides a command-line interface similar to
virtualenvfor ease of use.
Installation
Install portableenv via pip:
pip install portableenv
Usage
Create a Virtual Environment
To create a virtual environment using the embedded Python interpreter, use the following command:
python -m portableenv myenv
This will create a virtual environment named myenv using the embedded Python, Python 3.10.9 by default if not specified.
Specifying a Different Python Version
You can specify a different Python version using the -v or --version option:
python -m portableenv myenv -v 3.11.5
This will download the embedded Python version 3.11.5 from python.org and use it to create the virtual environment.
The tool downloads the embedded Python distribution directly from python.org and configures it automatically. It also installs and updates pip to the latest version in both the embedded Python and the created virtual environment, ensuring you have the most up-to-date package manager without seeing upgrade notices when installing packages.
Requirements
- Python 3.7 or higher
virtualenvlibrary (automatically installed with this package)- Internet connection for the initial download of the embedded Python interpreter
License
This project is licensed under the MIT License. See the LICENSE file for details.
Contributing
Contributions are welcome! Please fork this repository and submit a pull request with your changes.
Author
Links
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file portableenv-2.0.3.tar.gz.
File metadata
- Download URL: portableenv-2.0.3.tar.gz
- Upload date:
- Size: 6.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
02d9d23b3853beccd0766c5e9c3bec482a090559ece4bd72e5f635c26968bd42
|
|
| MD5 |
84ff6935a5621ab53f197805657bd925
|
|
| BLAKE2b-256 |
98781b51b9cd382d3d6fa2459ee9e7a27aa37e6c9a473770f740c1e4a6003c8c
|
File details
Details for the file portableenv-2.0.3-py3-none-any.whl.
File metadata
- Download URL: portableenv-2.0.3-py3-none-any.whl
- Upload date:
- Size: 7.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6b544da040e8ec18bdcbc6214397af446534fefc203e67446d9000d1ef2f5dfe
|
|
| MD5 |
abe582cf0ef4366f960c379f732790e8
|
|
| BLAKE2b-256 |
c2609d2165b183e490cbc84a50175748f0fb9d0010088e0e19cc26e59f4de149
|