[Subversion] / PEAK / setup.py  

Revision 1222


Jump to revision:
Previous Next
Author: tsarna
Date: Tue Jul 1 19:14:53 2003 UTC (20 years, 9 months ago)

Log Message:

Initial import of N2 (Namespace Navigator) utility.

This is a sort of all-purpose Swiss Army Knife for PEAK.  It's a sh-like
shell for navigating peak.naming contexts, complete with IO redirection!
It's an enhanced Python interactive command line! It's a sqsh-like
interactive database shell [1]! It's an extensible environment for
interacting with any python object! It's a floor wax, and a desert
topping!

This is an almost total rewrite of the (unreleased) original. It was
completely refactored to take advantage of adaption [2], changes in
peak.naming, the peak.running commands stuff, completely rewritten
argument parsing code, and more. This fixed all sorts of ugliness in the
original code, and made it much more extensible.

Note that this has not been tested much, especially the namespace shell,
because "nis:" has stopped working and that was my primary test case.
It also needs documentation and there are still some things to do to the
code... But you can play with it now.

usage: peak n2 [-e] [-p] [name]

-e      if name lookup fails, go into python interactor anyway
-p      use python interactor even if there is a more specific interactor
        (implies -e)

[1] The SQL interactor has not been ported from the old code yet, but
    that's coming soon.

[2] Phillip makes fun of me for saying adaption instead of adaptation,
    but dictionary.com say "adaption" is OK. :-)

    Besides, "adaption" sounds like it goes with adapt().  Seems like
    adaptation would have a function called adaptate() ;-).  And for that
    matter, shouldn't Canadians come from a country called Canadia?

Changed paths:

Path Action Text Changes Prop Changes Diff to Previous
PEAK/setup.py modified X   (diff to previous)
PEAK/src/peak/peak.ini modified X   (diff to previous)
PEAK/src/peak/running/tools added      
PEAK/src/peak/running/tools/__init__.py added X X  
PEAK/src/peak/running/tools/n2 added      
PEAK/src/peak/running/tools/n2/__init__.py added X X  
PEAK/src/peak/running/tools/n2/commands.py added X X  
PEAK/src/peak/running/tools/n2/interfaces.py added X X  
PEAK/src/peak/running/tools/n2/main.py added X X  
PEAK/src/peak/running/tools/n2/ns.py added X X  

cvs-admin@eby-sarna.com

Powered by ViewCVS 1.0-dev

ViewCVS and CVS Help