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

Uploaded Python 3

File details

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

File metadata

  • Download URL: portableenv-2.0.2.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.2.tar.gz
Algorithm Hash digest
SHA256 4e9f1a5df0844045e3e3329549366803602a59fb71f51e8c0a7de129e2e71d3b
MD5 0fe03090966464862ed47a9f6743aa4f
BLAKE2b-256 f705a89a68c1769135469305c2feff1a70d55cddbcda5a160547bd40aac46cc6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: portableenv-2.0.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 decd4384047387592950b75d66a979d6adcc563eef3ade4b08ed24f98de4e82a
MD5 6708472f5c6ec753511ccea9146f979a
BLAKE2b-256 3100e2b884e676ea9fad5e82de65c61e65508075bef0db72667a4701703736c6

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