Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 976 Categories, Downloaded 30.143.162 Times

Quasi 0.87

  Date Added: May 26, 2010  |  Visits: 588

Quasi

Report Broken Link
Printer Friendly Version


Product Homepage
Download (74 downloads)

Quasi project is a Python shell which supports pluggable "contexts" for non-Python commands, such as OS commands, MySQLdb queries and external programs. The smart-eyed reader will have noticed the use of the built-in quoted() method in the examples above. There are a number of these that are available in the interpreter namespace (the source is, as youd expect, in quasi.py): * quoted() returns any string surrounded by either single or double quotes (single-quotes as default). If passed a list, it returns a list of the strings, each quoted(), joined with whitespace. Currently it uses Pythons repr() as a quick-and-dirty way to do this. * dquoted does the same, but uses double-quotes and will escape any double-quotes already in a string. * commas() joins the elements of a list with commas; this is mostly for Windows work. * modules() returns a list of the currently imported modules in the interpreter namespace; just to make ones working life a little easier. * Bag() is a useful class. Bags can behave like dicts (in that they have a keys() method, and you can access values using the x[y] syntax) or like objects (in that you can access values using the x.y syntax). You must always assign values using the former (x[y]), but after that you can reference values either way. A Bag will also remember the order in which values were assigned; this is used in the SQL context, for example, so that a Bags keys or values are always returned in the order that a SELECT obtained them. There are also a number of built-in shell commands. Unlike nearly everything else that gets typed into Quasi, these execute in the namespace of the shell, not the interpreter. More on that another time, but it means that any variables your Python code may have defined are not accessible to built-in shell commands. This is why none of them need any real arguments: * exit: exit Quasi. * help: show lots of help on various sorts of command. * credits: show the names of the people who have contributed to Quasi. * license: show the Quasi (BSD-style) license. * history: show the command history. Supports slice notation (1:20), plus history searching. For example, history sq will find all command lines that begin with "sq". * recall: recall a previous command or set of them. This is very useful when youve been writing indented code and want to recall a set of previous lines. Same syntax as history - specify a single line or a slice-like set of them. Recall has a limitation; it requires a functional readline module available, to insert the recalled command into the input buffer for editing. If that cant be done, the recalled line(s) are printed to allow copying and pasting. Also, if more than one line is recalled, theres no way to edit them, so theyre executed. There are also a set of built-in commands which execute in the interpreter namespace and can, therefore, do variable-substitution trickery: * cd: change directory. You can do cd $x to change to the directory whose path is in variable x. * pwd: return the current working directory. You can do x=`pwd` to return the path of the current working directory into x, or just type pwd to see it. * pushd, popd: Oh come on... they work like the bash equivalents, ok? Both return the directory where they end up, as a string, so x=`pushd subDirectory` or here=`popd` work..

Requirements: No special requirements
Platforms: Linux
Keyword: Commands Python Quasi Shell Shells System Values
Users rating: 0/10

License: Freeware Size: 47.1 KB
QUASI RELATED
Business  -  Oracle PL/SQL executing OS Commands 0.6.2
Oracle PL/SQL executing OS Commands project contains the PL/SQL packages OS_COMMAND, FILE_TYPE and FILE_PKG which enable an Oracle database developer to interact with the operating system or with ordinary files. Oracle provides out-of-the-box only...
51.2 KB  
Shell & Desktop  -  bLogbook 1
bLogbook is a shell script that makes it easy to keep notes. bLogbook project uses the file system to manage a hierarchical set of "folders" and files. bLogbook is configurable and extensible. Extensions can be added using the available plugin...
21.5 KB  
Shell & Desktop  -  PHP Shell 2.1
PHP Shell is a shell wrapped in a PHP script. PHP Shell is a tool you can use to execute arbitrary shell-commands or browse the filesystem on your remote webserver. This replaces, to a degree, a normal telnet-connection. You can use it for...
19.46 KB  
Utilities  -  Python GnuPGInterface 0.3.2
GnuPGInterface is a Python module to interface with GnuPG . It concentrates on interacting with GnuPG via filehandles, providing access to control GnuPG via versatile and extensible means. This module is based on GnuPG::Interface, a Perl module...
12.29 KB  
Networking Tools  -  BindConfig 20010828
BindConfig is a tool to reduce the error prone work of maintaining BINDs zone files. More precisely, BindConfig is the name of a Python module which can read BINDs zone files and named.conf files, and can modify and save BINDs zone files. The...
8.19 KB  
Audio Tools  -  Cjukebox 1.37
Cjukebox is a python/curses based management system for audio files and playlists. Its user interface was inspired by the Norton commander for DOS. It does not rely on a separate database. Playback is made by the Musicus tool, which plays all...
35.84 KB  
Desktop Utilities  -  SharpE 0.8 RC3
SharpEnviro (or SharpE) is an Open Source shell replacement system for Microsoft's operating systems. When using SharpEnviro the default Windows desktop is replaced by a new and more powerful desktop environment. The goal of SharpEnviro is not...
32.2 MB  
Science  -  Pound-Shell 1.0
A logging shell that can log commands from a shell. Designed to act as an automated lab-book for people that conduct experiments in their standard shell environments. Users can log and re-run experiments with little/no manual effort or interference.
123.13 KB  
Science  -  pygeotag 1.0
The suite of Python-based shell tools for geocoding images from GPS logs (GPX)
31.02 KB  
Entertainment  -  QZ-finder 1.30
An application that enables the Quasi-Zenith Satellite System (QZSS) and GPS to be seen in from your iPhone in various ways! This application downloads the latest QZSS+GPS almanac file from the "QZ-vision" site and gives you the latest...
1.1 MB  
NEW DOWNLOADS IN LINUX SOFTWARE, SHELL & DESKTOP
Linux Software  -  Polling Autodialer Software 3.4
ICTBroadcast Auto Dialer software has a survey campaign for telephone surveys and polls. This auto dialer software automatically dials a list of numbers and asks them a set of questions that they can respond to, by using their telephone keypad....
488 B  
Linux Software  -  Total Video Converter Mac Free 3.5.5
Total Video Converter Mac Free developed by EffectMatrix Ltd is the official legal version of Total Video Converter which was a globally recognized brand since 2006. Total Video Converter Mac Free is a free but powerful all-in-one video...
17.7 MB  
Linux Software  -  Skeith mod_log_sql Analyzer 2.10beta2
Skeith is a php based front end for analyzing logs for Apache using mod_log_sql.
47.5 KB  
Linux Software  -  SLAX 6.0+
Slax is a modern, portable, small and fast Linux operating system with a modular approach and outstanding design. Despite its small size, Slax provides a wide collection of pre-installed software for daily use, including a well organized graphical...
190 KB  
Linux Software  -  GTK+ 2.5
GTK+, which stands for the GIMP Toolkit, is a library for creating graphical user interfaces for the X Window System. It is designed to be small, efficient, and flexible. GTK+ is written in C with a very object-oriented approach. Language bindings...
60 MB  
Shell & Desktop  -  Glunarclock 0.32.4
GNOME Lunar Clock Applet displays the current phase of the Moon as an applet for the gnome panel. In the properties box you can choose between a real image Features Pointing with the mouse at the applet...
522.24 KB  
Shell & Desktop  -  KOpenBabel 0.2
KOpenBabel is a graphical interface to Open Babel.[1] KOpenBabel can handle and convert over 70 chemical file formats. At this time, it can convert files, guess input file type and convert a large number of files with a single click. The user...
20.48 KB  
Shell & Desktop  -  Fekete 5
Icon theme for Linux For all possible desktop, and Linux distro Special additives: Suse's Yast icons. Xfce system icons, and archaic mimetypes icons Mandriva "special placed" status icons. Libreoffice icons.
71.59 MB  
Shell & Desktop  -  DesktopTools 02-alpha
DesktopTools is a collection of small utillities which help to make your daily life easier. Since the tools themself are rather small (projectwise) I keep them not as individual projects, but have them under this collective name.
102.4 KB  
Shell & Desktop  -  XFast 0.9
XFast is a slim and lightweighted desktop environment that incorporates X and Window Manager within the same project.
1.15 MB