Welcome, guest | Sign In | My Account | Store | Cart

Notice! PyPM is being replaced with the ActiveState Platform, which enhances PyPM’s build and deploy capabilities. Create your free Platform account to download ActivePython or customize Python with the packages you require and get automatic updates.

Download
ActivePython
INSTALL>
pypm install xal

How to install xal

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install xal
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
Windows (64-bit)
Mac OS X (10.5+)
Linux (32-bit)
0.1 Available View build log
Linux (64-bit)
0.1 Available View build log
 
Author
Dependencies
Lastest release
version 0.1 on Jul 14th, 2013

Xal is a contextual execution framework for Python. "xal" is the acronym of "eXecution Abstraction Layer".

Warning

This project is experimental. Current goal is to implement a proof-of-concept that can be shown to, discussed with or tried by users of tools like subprocess, Fabric, zc.buildout, Salt...

Xal helps you create scripts to perform actions on a system, like managing non-Python resources, independantly from the execution context.

The main motivation of this library is about sharing system scripts:

  • scripts are written with session as argument, they use an high-level abstract API;
  • sessions are registries, they encapsulate API implementation: local Python shell, Fabric, Salt...

Example

Let's create a xal-compatible function. It takes the execution context as input argument:

>>> def home_directory_exists(session):
...     """Return True if home directory of session's user exists."""
...     return session.dir.exists(session.dir.home)

Then create an execution session. The LocalSession used here is a pre-configured registry:

>>> from xal.session.local import LocalSession
>>> session = LocalSession()

Finally run the function in the session:

>>> home_directory_exists(session)
True

Subscribe to package updates

Last updated Jul 14th, 2013

What does the lock icon mean?

Builds marked with a lock icon are only available via PyPM to users with a current ActivePython Business Edition subscription.

Need custom builds or support?

ActivePython Enterprise Edition guarantees priority access to technical support, indemnification, expert consulting and quality-assured language builds.

Plan on re-distributing ActivePython?

Get re-distribution rights and eliminate legal risks with ActivePython OEM Edition.