Fall in love with bpython

Karim karim.liateni at free.fr
Thu Jul 28 01:04:00 CEST 2011


On 07/27/2011 12:34 AM, Alan Gauld wrote:
> Karim wrote:
>
>> I use bpython interpreter. This is a very good interactive CLI.
>
> I had never heard of it and had to google for it.
> It appears to be a curses based CLI for *nix and MacOS

Ah Windows user.

>
>> I want to create a CLI with the same features than bpython.
>> But the cmd std module seems no to be used in this project...
>
> Why not read the bpython source to see what they used?
> Thats the big advantage of open source - its open!
> (Although they don't make the source explicitly available,
> I'm assuming the tar file contains the source- it might
> even be in Python!)
>
> They use pygments to parse the source as you type.
> That would be worth investigating too...
>

Yes I saw mainly pygments which is an OpenSource project...
But, I must admit. I will spend 6 months before understanding this.
Rhahaaa... This level is high! I saw too cmd2 which is fully compatible 
and inherit from cmd.
But not quite as fun!

The main module cli.py is 1700 lignes and the architecture is not very 
well documented.
We will see If I can make any progress during the next month.

Thanks Alan

PS: Are you still making some hiking in the higlands. Beautiful photos I 
have seen on your web site!

Cheers
Alan

>
> HTH,
>
> Alan G.




More information about the Python-list mailing list