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 31.033.126 Times

krpython 0.2.1

Company: Kenneth Reitz
Date Added: September 24, 2013  |  Visits: 280


Report Broken Link
Printer Friendly Version

Product Homepage
Download (17 downloads)

krpython - A fancy curses interface to the Python interactive interpreter<br />=======<br /><br />Dependencies<br />============<br />Pygments<br />pyparsing<br />(apt-get install python-pyparsing python-pygments)<br /><br />Introduction<br />============<br />A few people asked for stuff like syntax highlighting<br />and autocomplete for the Python interactive interpreter.<br />IPython seems to offer this (plus you can get readline<br />behaviour in the vanilla interpreter) but I tried<br />IPython a couple of times. Perhaps I didn't really get<br />it, but I get the feeling that the ideas behind IPython<br />are pretty different to krpython. I didn't want to create<br />a whole development environment; I simply wanted to<br />provide a couple of neat features that already exist<br />and turn them into something a little more interactive.<br /><br />The idea is to provide the user with all the features<br />in-line, much like modern IDEs, but in a simple,<br />lightweight package that can be run in a terminal<br />window, so curses seemed like the best choice.<br />Sorry if you use Windows.<br /><br />krpython doesn't attempt to create anything new or<br />groundbreaking, it simply brings together a few neat<br />ideas and focuses on practicality and usefulness.<br />For this reason, the "Rewind" function should be<br />taken with a pinch of salt, but personally I have<br />found it to be very useful. I use krpython now<br />whenever I would normally use the vanilla interpreter,<br />e.g. for testing out solutions to people's problems<br />on IRC, quickly testing a method of doing something<br />without creating a temporary file, etc..<br /><br />Features<br />========<br /><br />* In-line syntax highlighting.<br />*This uses Pygments for lexing the code as you type,<br />*and colours appropriately. Pygments does a great job<br />*of doing all of the tricky stuff and really leaving<br />*me with very little to do except format the tokens<br />*in all my favourite colours.<br /><br />* Readline-like autocomplete with suggestions displayed<br />as you type.<br />*Thanks to Python's readline interface to libreadline<br />*and a ready-made class for using a Python interpreter's<br />*scope as the dataset, the only work here was displaying<br />*the readline matches as you type in a separate curses<br />*window below/above the cursor.<br /><br />* Expected parameter list.<br />*As in a lot of modern IDEs, krpython will attempt to<br />*display a list of parameters for any function you<br />*call. The inspect module is tried first, which works<br />*with any Python function, and then pydoc if that fails,<br />*which seems to be pretty adequate, but obviously<br />*in some cases it's simply not possible. I used pyparsing<br />*to cure my nested parentheses woes; again, it was<br />*nice and easy.<br /><br />* Rewind.<br />*I didn't call this "Undo" because I thought that would<br />*be misleading, but "Rewind" is probably as bad. The<br />*idea is that the code entered is kept in memory and<br />*when the Rewind function is called, the last line is<br />*popped and the entire code is re-evaluated. As you can<br />*imagine, this has a lot of potential problems, but for<br />*defining classes and functions, I've found it to be<br />*nothing but useful.<br /><br />* Pastebin code/write to file.<br />*I don't really use the save thing much, but the pastebin<br />*thing's great. Hit a key and what you see on the screen<br />*will be sent to a pastebin and a URL is returned for you<br />*to do what you like with. I've hardcoded<br />*in for now, that needs to be fixed so it's configurable.<br />*Next release, I promise. Support for<br />*was just added. Just add use_gist to your ~/.bpythorc<br />*file, and you'll be pasting strait to Gists instead.<br /><br />* Flush curses screen to stdout.<br />*A featurette, perhaps, but I thought it was worth noting.<br />*I can't personally recall a curses app that does this,<br />*perhaps it's often not useful, but when you quit krpython,<br />*the screen data will be flushed to stdout, so it basically<br />*looks the same as if you had quit the vanilla interpreter.<br /><br />Configuration<br />=============<br />See the sample-rc file for a list of available options.<br />You should save your rc file as ~/.krpythonrc or specify<br />at the command line:<br /><br />krpython /path/to/krpythonrc<br /><br />Known Bugs<br />==========<br /><br />* Triple quoted strings over multiple lines work, but they're<br />not highlighted properly.<br /><br />#md5=23808c525161f8805bb1717ac5278d59

Requirements: No special requirements
Platforms: *nix, Linux
Keyword: Colours Couple Curses Didn Function Great I039ve Interactive It039s Krpython Pygments Python Readline Simply Thought Vanilla
Users rating: 0/10

License: Freeware Size: 20.48 KB
Programming  -  bpython-gist
A few people asked for stuff like syntax highlighting and autocomplete for the Python interactive interpreter. IPython seems to offer this (plus you can get readline behaviour in the vanilla interpreter) but I tried IPython a couple of times....
81.92 KB  
Education  -  FreeStyle Calc
Free style calculator Totally based on "BODMAS" Rule. its very interactive and easy to handle.Couple of usable function include in it like Sine, cos ,log..etc you can also solve the 2degree put whole equation with bracket it will...
1024 KB  
Multimedia & Graphics  -  MThumbnail 1.0
MThumbnail is a totally FREE application that automatically generates thumbnails from all JPEGs in actual directory and generates also colorized thumbnails great for interactive galleries using a simple Javascript. For more information see...
355 KB  
Games  -  Python Universe Builder 1.0
Python Universe Builder (PUB) is an Interactive Fiction module for Python. It provides a programming environment similar to that of Inform or TADS but runs under any Python interpreter.
606.77 KB  
Games  -  SimPG 1.0
A basic, very simple interactive game written in python. Written in Python 2, requires Python 2.
6.13 KB  
Entertainment  -  Gun Sounds + FREE 1.0
Gun Sounds + is an audio application which allows you to listen to sounds of different Gun, weapon and war. This is a great tool to learn how to identify Gun. Simply tap on the guns icon to listen to sounds. We took the time...
12.4 MB  
Games  -  Zombies Fighter Free
Welcome to Zombies Fighter Free. A pretty running girl is now in great danger, stalked by an army of zombies. She thought find rescue in this strange old manor house. But she stuck her head in the lion's mouth. So you...
18 MB  
Libraries  -  Curses 1.15
Curses is a terminal screen handling and optimization. SYNOPSIS use Curses; initscr; ... endwin; Curses::supports_function($function); Curses::supports_contsant($constant); Curses is the interface between Perl and your systems...
81.92 KB  
Instant Messagers  -  IANAB 0.5.0
IANAB is a bot for AOL Instant Messenger programmed in Perl using the Net::AIM and DBD::CSV modules and released under the GPL. If you invite IANABot to a chat room, ask it nicely to "please leave" and it will. All bugs should be reported to...
20.48 KB  
Education  -  Amazing Space Journey
Engage yourself into an Amazing Space Journey. Discover the Solar System and explore the Sun, the planets and their satellites in stunning details. Take over time and space and observe the planets' position and orbit. Interactive...
25 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  
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  
Programming  -  FLEX-db Digital Asset Manager 3.0.9
FLEX-db - an enterprise Digital Asset Manager (DAM). It ingests and links metadata with files, creates thumbnails, and processes files using business rules. FLEX-db has a JSP client, Java app server for file input and output and an EJB metadata...
21.57 MB  
Programming  -  Libicom 0.9.0
The libicom library is a character based dynamicly linked library for Linux. It is used to remotely control the Icom IC-R8500 wide band receiver via an RS232 link. All call and return parameters to the control functions are character string based....
20.48 KB  
Programming  -  dotdesktop 0.3
Dotdesktop library provides ability to parse desktop entry file and access the information in a convenient way. Desktop entry file format is defined by, it is used to describe information about an application such as the name and...
327.68 KB  
Programming  -  Cedalion for Linux 0.2.6
Cedalion is a programming language that allows its users to add new abstractions and define (and use) internal DSLs. Its innovation is in the fact that it uses projectional editing to allow the new abstractions to have no syntactic limitations.
471.04 KB  
Programming  -  libyasl 0.2
Libyasl is a C++ class library to easily realize TCP/UDP/Multicast clientsand servers in IPv4 and IPv6 environments under GNU/Linux systems.
143.36 KB