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

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

Serving Software Downloads in 956 Categories, Downloaded 50.197.057 Times

Quasi 0.87

  Date Added: May 26, 2010  |  Visits: 843

Quasi

Report Broken Link
Printer Friendly Version


Product Homepage
Download (92 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
USER REVIEWS
More Reviews or Write Review


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  -  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  
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  
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  
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  
Programming  -  Python SQL Dataase Access System b
PySQLdb provides a simple and consistent programming interface to SQL databases,in Python.The PySQLdb classes are abstracted sufficiently for programmers consider writing tiny compilers (in python!) that take a SQL file and auto-generate code to acc
16.52 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  -  pygeotag 1.0
The suite of Python-based shell tools for geocoding images from GPS logs (GPX)
31.02 KB  
NEW DOWNLOADS IN LINUX SOFTWARE, SHELL & DESKTOP
Linux Software  -  EasyEDA PCB Designer for Linux 2.0.0
EasyEDA, a great web based EDA(Electronics Design Automation) tool, online PCB tool, online PCB software for electronics engineers, educators, students, makers and enthusiasts. Theres no need to install any software. Just open EasyEDA in any...
34.4 MB  
Linux Software  -  wpCache® WordPress HTTP Cache 1.9
wpCache® is a high-performance, distributed object, caching system application, generic in nature, but intended for use in speeding up dynamic web applications, by decreasing database load time. wpCache® decreases dramatically the page...
3.51 MB  
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  
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  -  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  -  XFast 0.9
XFast is a slim and lightweighted desktop environment that incorporates X and Window Manager within the same project.
1.15 MB  
Shell & Desktop  -  print selection konqueror service menu 0.1
This service menu give you a *silly* way to print fast your selection on konqueror USE select the text copy the text rigt button on the webpage select print selection a kdialog will appear paste the text
10.24 KB  
Shell & Desktop  -  Faenza 1.2
Faenza icon theme is available to install for Ubuntu users via a PPA repository. View the README file for instructions and a list of known issues.
23.49 MB