Skip to main content

Ash is a thin wrapper around the excellent virtualenv that parallels the behavior by npm. This generally means that the virtual environment for a project is directly inside the project directory structure. This is different to the approach by virtualenvwrapper - that is, a centralized place for virtualenvs. By coupling the environment to the project itself, developers don’t have to remember to switch among different environments when they work on different projects.

Ash tries to be as cross platform as possible. As of this moment, I’ve used Ash successfully on Windows, Linux and OSX with both Python 2 and 3. If you can help with testing/debugging Ash on other platforms, I would appreciate it very much.

Installation

Put ash.py into a directory in your PATH. That’s it.

Or you could go the easy route and use pip like the following:

pip install ash

to install Ash on your system.

Usage

It is very easy to use ash, in fact, it tries to stay out of the way as much as possible. The only special command for Ash is:

ash.py init

which initializes the virtualenv for the current directory. All the options for virtualenv are allowed here, for example:

ash.py init --distribute --relocatable

The init command will create a python_env directory (the directory name is modifiable via the Configuration) in the current directory which contains your brand new virtualenv. Afterwards, you can run any command with the following syntax in this directory (and/or its subdirectories):

ash.py *your command here*

and it will be run in the created virtual environment. For example:

ash.py pip install Django

will install Django into your python_env directory. That is all there is to it.

Note: It is recommended that you include the python_env directory in your ignore file for version control softwares, so that the environment itself is not checked in.

Configuration

Ash allows you to specify configurations for its behavior by adding a file named .ashconfig in your HOME folder (in Linux, this is ~/.ashconfig, in Windows, it is usually C:\Users\yourusername\.ashconfig). This config file is in JSON format, and at the moment the following settings (with their default values) are available:

{
    "debug": false,  # set to true for more verbose debugs
    "venv_command": "virtualenv",  # for irregular path to virtualenv
    "venv_dir_name": "python_env"  # the name to use for the env directory
}

Release files for Ash 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for Ash 0.1.3
File Size Uploaded
Ash-0.1.3.tar.gz 4.4 kB Details

Release files / Ash-0.1.3.tar.gz

Download URL Ash-0.1.3.tar.gz
Size 4.4 kB
Tags Source
SHA-256 checksum
How to use checksums
a00dfed362a93390d6b7560b597a9ba3c835d30bb8d8ba36847682032f88c6da
BLAKE2b-256 checksum
How to use checksums
1335e1aaf526c5bda2b83ba24bf87a7b78e68a97f1ddbcd3c3847e9b57e1e048
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.1.3 This release

1 release file

0.1.2

1 release file

0.1.1

1 release file

0.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page