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, 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
  • 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.4.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.4-py3-none-any.whl (7.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: portableenv-2.0.4.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.4.tar.gz
Algorithm Hash digest
SHA256 2982adcc604abbd50001c2e75a9682273a149a9446eb475cfa8908f70735fab7
MD5 082e656ae9fa0a88de99fa713633541d
BLAKE2b-256 58411616ad608f504d2d958d8eb8e7f8b7d4743d8748c7992242be42b367b351

See more details on using hashes here.

File details

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

File metadata

  • Download URL: portableenv-2.0.4-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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 e6a5cafd4494dbb930f94120d8ac232c9314225f48b6c439c590521bb6f94c1a
MD5 c2b4aa7d3f193af7b0fcab8f3e90c194
BLAKE2b-256 97c128899bad9341751bd7f6a643592f182c9302d9b685c414a8a44e5c7fef4c

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