Skip to main content

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 virtualenv for 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, currently Python 3.10.9.

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.9.13 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.8 or higher
  • virtualenv library (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


Download files

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

Source Distribution

portableenv-2.0.1.tar.gz (6.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

portableenv-2.0.1-py3-none-any.whl (7.8 kB view details)

Uploaded Python 3

File details

Details for the file portableenv-2.0.1.tar.gz.

File metadata

  • Download URL: portableenv-2.0.1.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

Hashes for portableenv-2.0.1.tar.gz
Algorithm Hash digest
SHA256 7bea4e7e4474ead1d9bc7a872439a99b8b50b6d9f384cf88a63ced2694b76a43
MD5 dd211caac0ee6a6499e2968c3b8892ce
BLAKE2b-256 40ab3f34053c659254fcec339959ce35ff5ad145a3895161e5b0c20f550a6ec5

See more details on using hashes here.

File details

Details for the file portableenv-2.0.1-py3-none-any.whl.

File metadata

  • Download URL: portableenv-2.0.1-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

Hashes for portableenv-2.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ece53e290439d83a545c9afa63d678eba1df170ac205593c9b5ed991d48eea2a
MD5 62432e4a9e92c0be03b6e299e6dc3f5a
BLAKE2b-256 e9cf733f377aeb5e988a30184670fb207767a492acd48dbed00e97c88fa5cc66

See more details on using hashes here.

Supported by

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