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.6.tar.gz (6.9 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.6-py3-none-any.whl (7.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: portableenv-2.0.6.tar.gz
  • Upload date:
  • Size: 6.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for portableenv-2.0.6.tar.gz
Algorithm Hash digest
SHA256 5566ce7f63b4d29386e245e22570b953a88f9a2cf82ac7cb938d9d042f363b8c
MD5 61909ed67c3dff924c2961ddbee93a7f
BLAKE2b-256 f69460c82d962833d0774eecbdb724a71b73e884bb84ba7117d10a81ce768fb4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: portableenv-2.0.6-py3-none-any.whl
  • Upload date:
  • Size: 7.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for portableenv-2.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 a988d58f3326b09efcac3b2bdaaed48600ace3200bcd4dcc489df76106fe3ca5
MD5 31e309720a5c505691b8c93de45483cc
BLAKE2b-256 e8bc4efad624d19ae23514d057336bb3f208d55d0c5a310029e3963629e49518

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