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:

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:

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: portableenv-2.0.0.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.0.tar.gz
Algorithm Hash digest
SHA256 0cbcad4c0bafae08bb85f9bd870a6319df9beff61e4147f79817edcbf8403ec8
MD5 5aa07888cf43deceb6502dc688ea3288
BLAKE2b-256 36cd4b2a8572116075e7eb6b21acbaf285c8a757874346d9eeacf0581b58d582

See more details on using hashes here.

File details

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

File metadata

  • Download URL: portableenv-2.0.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 599d8c6dbbd0032878a7eda41b307e5269d20d8546936989153e20f5dc6e6e62
MD5 e39ae81a057839eb8f8c814ab8cc7476
BLAKE2b-256 8dacac87f37da03ec73c3313400f1aa8629e900c93fa72f92f9c3835b8c30200

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