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.193.804 Times

bpython-gist 0.9.7.1

Company: Robert Anthony Farrell
Date Added: October 29, 2013  |  Visits: 433

bpython-gist

Report Broken Link
Printer Friendly Version


Product Homepage
Download (36 downloads)



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

Requirements: No special requirements
Platforms: *nix, Linux
Keyword: Bpython Curses Didn Function Interpreter Ipython It039s Modern Personally Python Readline Screen Simply Stdout Vanilla
Users rating: 0/10

License: Freeware Size: 81.92 KB
USER REVIEWS
More Reviews or Write Review


BPYTHON-GIST RELATED
Screen Savers  -  Modern Clock-7 1.0
"Modern Clock-7" is screen saver that displays the current time.
353 KB  
Miscellaneous  -  Reduce generator 1.0
In this script the builtin function reduce is generalized to a Python 2.5 style generator called greduce. The generator never stops and can be used to create an infinite stream of values by means of the generators send() method.
 
Communication Tools  -  dovlog 0.1.4
Amateur radio curses based cross-platform logging program written in Python.
146.91 KB  
Programming  -  krpython 0.2.1
krpython - A fancy curses interface to the Python interactive interpreter ======= Dependencies ============ Pygments pyparsing (apt-get install python-pyparsing python-pygments) Introduction
20.48 KB  
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  
Libraries  -  Curses::Simp 1.0.4287FJQ
Curses::Simp is a simple curses wrapper for easy application development. SYNOPSIS use Curses::Simp; my $simp = Curses::Simp->new(text => [1337, nachoz, w/, cheese x 7]); my $key = ; while($key ne x) { # wait for x to eXit $key =...
143.36 KB  
Shell & Desktop  -  Termlock 1.0.1
Termlock project blanks a curses compatible character terminal (e.g. xterm, eterm, PuTTY, konsole, dtterm, etc ...) and locks it. To unlock the terminal a password must be entered. The password, or rather the password hash, is stored in...
10.24 KB  
Programming  -  Nasal 1.0
Nasal is a language that I wrote for use in a personal project. Ostensibly it was because I was frustrated with the dearth of small-but-complete embeddable scripting languages, but of course I really wrote it because it was fun. It is still...
102.4 KB  
Programming  -  entrypoint 0.1.5
A decorator to interact with argparse based on function signature. This is a decorator library that helps one to write small scripts in Python. There are three main features that it provides: * Automatically...
10.24 KB  
Utilities  -  Python CD 2004-07-02
Python CD is a bootable CD based on Debian GNU/Linux and KNOPPIX. The special thing about it is that it has lots of Python stuff! Installable Python packages In the top level directory of the CD is a directory python/, containing several...
669.5 MB  
NEW DOWNLOADS IN LINUX SOFTWARE, PROGRAMMING
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  
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  -  Math::GMPf 0.29
Math::GMPf - perl interface to the GMP library's floating point (mpf) functions.
30.72 KB  
Programming  -  Net::Wire10 1.08
Net::Wire10 is a Pure Perl connector that talks to Sphinx, MySQL and Drizzle servers. Net::Wire10 implements the low-level network protocol, alias the MySQL wire protocol version 10, necessary for talking to one of the aforementioned...
30.72 KB  
Programming  -  logilab-common 0.56.2
a bunch of modules providing low level functionnalities shared among some python projects devel Please note that some of the modules have some extra dependencies. For instance, logilab.common.db will require a db-api 2.0 compliant...
174.08 KB  
Programming  -  OpenSSL for linux 1.0.0a
The OpenSSL Project is a collaborative effort to develop a robust, commercial-grade, full-featured, and Open Source toolkit implementing the Secure Sockets Layer (SSL v2/v3) and Transport Layer Security (TLS v1) protocols as well as a...
3.83 MB