Xonsh API#

For those of you who want the gritty details.

Language:

xonsh.lexer

Lexer for xonsh code.

xonsh.parser

Implements the xonsh parser.

xonsh.ast

Abstract Syntax Tree handler

xonsh.execer

Implements the xonsh executer.

xonsh.imphooks

Import hooks for importing xonsh source files.

Command Prompt:

xonsh.built_ins

The xonsh built-ins.

xonsh.environ

Environment for the xonsh shell.

xonsh.aliases

Aliases for the xonsh shell.

xonsh.dirstack

Directory stack and associated utilities for the xonsh shell.

xonsh.jobs

Job control for the xonsh shell.

xonsh.procs

xonsh.inspectors

Tools for inspecting Python objects.

xonsh.history

xonsh.completer

A (tab-)completer for xonsh.

xonsh.completers

xonsh.prompt

xonsh.shell

The xonsh shell

xonsh.base_shell

The base class for xonsh shell

xonsh.readline_shell

The readline based xonsh shell.

xonsh.ptk_shell

xonsh.pretty

Python advanced pretty printer.

xonsh.diff_history

Tools for diff'ing two xonsh history files in a meaningful fashion.

xonsh.xoreutils

Helpers:

xonsh.events

Events for xonsh.

xonsh.lib

xonsh.tools

Misc.

xonsh.platform

Module for platform-specific constants and implementations, as well as compatibility layers to make use of the 'best' implementation available on a platform.

xonsh.jsonutils

Custom tools for managing JSON serialization / deserialization of xonsh objects.

xonsh.lazyjson

Implements a lazy JSON file class that wraps around json data.

xonsh.lazyasd

Lazy and self destructive containers for speeding up module import.

xonsh.openpy

Tools to open *.py files as Unicode.

xonsh.foreign_shells

Tools to help interface with foreign shells, such as Bash.

xonsh.commands_cache

Module for caching command & alias names as well as for predicting whether a command will be able to be run in the background.

xonsh.tracer

Implements a xonsh tracer.

xonsh.main

The main xonsh script.

xonsh.color_tools

Tools for color handling in xonsh.

xonsh.pyghooks

Hooks for pygments syntax highlighting.

xonsh.dumb_shell

A dumb shell for when $TERM == 'dumb', which usually happens in emacs.

xonsh.wizard

Tools for creating command-line and web-based wizards from a tree of nodes.

xonsh.xonfig

The xonsh configuration (xonfig) utility.

xonsh.xontribs

Tools for helping manage xontributions.

xonsh.codecache

Tools for caching xonsh code.

xonsh.contexts

Context management tools for xonsh.

Xontribs: