473,804 Members | 3,797 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

bpython - fancy Python shell


I released this a while ago but did some work recently to fix some bugs
so I thought I may as well post it here. To quickly summarise:
In-line syntax highlighting
Auto complete with suggestions as you type
Pastebin stuff, save to file
"Rewind" feature to jump back a line if you mess up (don't ask how it
works, please ;)

You can get it here:
http://www.noiseforfree.com/bpython/

There's info about git repos and what have you there, and apparently
it's also in some real distro repos, but I don't know the details.

Oh, and you'll need pygments and pyparsing, and it doesn't work on
Windows (heard good reports about it working fine on a Mac though).
--
Bob Farrell
Jun 27 '08 #1
3 2043
2008/6/15, Bob Farrell <ro************ ******@googlema il.com>:
>
I released this a while ago but did some work recently to fix some bugs
so I thought I may as well post it here. To quickly summarise:
In-line syntax highlighting
Auto complete with suggestions as you type
Pastebin stuff, save to file
"Rewind" feature to jump back a line if you mess up (don't ask how it
works, please ;)

You can get it here:
http://www.noiseforfree.com/bpython/

There's info about git repos and what have you there, and apparently
it's also in some real distro repos, but I don't know the details.

Oh, and you'll need pygments and pyparsing, and it doesn't work on
Windows (heard good reports about it working fine on a Mac though).
Great work, bobf. :)
I've been using bpython from time to time for a month now, so I can
only appreciate the fact that bpython is developing. I think that with
that speed of development bpython will substitute ipython as my
everyday python console in the near future (3-4 months).

P.S. I think you should of cc'd this announcement to python-announce-list. ;)
--
Bob Farrell
--
http://mail.python.org/mailman/listinfo/python-list

--
Wbr, Andrii Mishkovskyi.

He's got a heart of a little child, and he keeps it in a jar on his desk.
Jun 27 '08 #2
I couldn't get it work on Solaris (modified some lines for Python2.3).
One reason was that I had to download pyreadline separately
- I did than but now pyreadline requires either ironpython or
a windows installation. Something is going wrong...

Best regards

Wolfgang

Bob Farrell schrieb:
I released this a while ago but did some work recently to fix some bugs
so I thought I may as well post it here. To quickly summarise:
In-line syntax highlighting
Auto complete with suggestions as you type
Pastebin stuff, save to file
"Rewind" feature to jump back a line if you mess up (don't ask how it
works, please ;)

You can get it here:
http://www.noiseforfree.com/bpython/

There's info about git repos and what have you there, and apparently
it's also in some real distro repos, but I don't know the details.

Oh, and you'll need pygments and pyparsing, and it doesn't work on
Windows (heard good reports about it working fine on a Mac though).
Jun 27 '08 #3
Wolfgang Grafen <wo************ *@ericsson.com> :
I couldn't get it work on Solaris (modified some lines for Python2.3).
If solaris doesn't have a readline library, you might try to compile gnu
readline, and recompile python (also a chance to get the current version
2.5)
One reason was that I had to download pyreadline separately
- I did than but now pyreadline requires either ironpython or
a windows installation.
pyreadline is a windows-only thing. Since readline is a standard module on
most unix systems and linux, there was no need to implement pyreadline for
these systems. It would have been difficult anyway, since the windows
console is completely different to unix consoles (which are fairly
compatible to each other, a outcome of POSIX efforts).

--
Freedom is always the freedom of dissenters.
(Rosa Luxemburg)
Jun 27 '08 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
2478
by: John J. Lee | last post by:
1. Why do I get this in my minibuffer when I do C-c C-c in a python-mode buffer containing the following valid Python code? Wrong type argument: sequencep, cpython ----START #!/usr/bin/env python print "hello, world" ----END
54
6586
by: Brandon J. Van Every | last post by:
I'm realizing I didn't frame my question well. What's ***TOTALLY COMPELLING*** about Ruby over Python? What makes you jump up in your chair and scream "Wow! Ruby has *that*? That is SO FRICKIN' COOL!!! ***MAN*** that would save me a buttload of work and make my life sooooo much easier!" As opposed to minor differences of this feature here, that feature there. Variations on style are of no interest to me. I'm coming at this from a...
4
3853
by: Logan | last post by:
Several people asked me for the following HOWTO, so I decided to post it here (though it is still very 'alpha' and might contain many (?) mistakes; didn't test what I wrote, but wrote it - more or less - during my own installation of Python 2.3 on Fedora Core 1 Linux for a friend of mine). Anyway, HTH, L.
20
5197
by: Matthew Thorley | last post by:
My friend sent me an email asking this: > I'm attemtping to decide which scripting language I should master and > was wondering if it's possible to do > these unixy awkish commands in python: > > How to find the amount of disk space a user is taking up: > > find / -user rprice -fstype nfs ! -name /dev/\* -ls | awk '{sum+=$7};\ > {print "User rprice total disk use = " sum}'
2
4549
by: Xah Lee | last post by:
Python Doc Problem Example: os.system Xah Lee, 2005-09 today i'm trying to use Python to call shell commands. e.g. in Perl something like output=qx(ls) in Python i quickly located the the function due to its
30
2922
by: bblais | last post by:
Hello, Let me start by saying that I am coming from a background using Matlab (or Octave), and C++. I am going to outline the basic nuts-and-bolts of how I work in these languages, and ask for some help to find out how the same thing is done in Python. I am not sure what the standard is. In C++, I open up an editor in one window, a Unix shell in another. I write the code in the editor, then switch to the shell window for compile...
16
3954
by: John Salerno | last post by:
Hi all. I just installed Ubuntu and I'm learning how to use the bash shell. Aside from the normal commands you can use, I was wondering if it's possible to use Python from the terminal instead of the normal bash commands (e.g. print instead of echo). My main reason for asking is that I like using Python for everything, and if I don't need to learn the bash 'language', then I won't just yet. Thanks.
3
3956
by: mmm | last post by:
I am looking for advice on Python Editors and IDEs I have read other posts and threads on the subject and my two questions at this time are mainly about the IDLE-like F5-run facilities. While I am fairly happy using IDLE, the debugger is unintuitive to me and I wanted a project manager and a better variable/ class browser and also the potential to edit/run other languages such as R and Tex/Latex. Windows and LINUX compatibility is...
8
5587
by: james.kirin39 | last post by:
Hi everyone, After having used Python on Linux for some time, I now have to do Python coding on Windows. I am big fan of the interactive Python shell to test, eg, regexps. Is there an interactive Python shell on Windows that supports: - easy copy-pasting to/from an editor? (as opposed to the cumbersome "mark", "copy" and then "paste" sequence that any terminal on Windows
0
9710
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9589
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10593
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10085
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9163
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6858
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5663
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4304
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3830
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.