bpython
xonsh
bpython | xonsh | |
---|---|---|
15 | 126 | |
2,720 | 8,951 | |
0.2% | 0.5% | |
6.2 | 9.3 | |
14 days ago | 7 days ago | |
Python | Python | |
GNU General Public License v3.0 or later | GNU General Public License v3.0 or later |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
bpython
- Our Team's Favourite Open Source Projects Right Now
- REPL Driven Python
-
What packages replaced standard library modules in your workflow?
bpython over built-in Python interpreter
-
What dev tools do you use in your python projects?
Yeah, also it's worth to mention bpython
-
can I get syntax highlighting for python shell?
I use bpython, its a pretty cool python REPL, try it out
-
Release of IPython 8.0
Yeah, mostly I lack time to catch up with Jonathan Slenders works, and have stronger backward compatibility requirements. b=But ptpython and pyipython are both great.
I should also look into Rich and Textual
https://bpython-interpreter.org/ is also another alternative python shell, and of course https://xon.sh
-
Who needs a calculator?
It's a nicer repl for python.
-
Need help setting up python on arch linux
Python comes with IDLE as /usr/bin/idle but it doesn't have a corresponding .desktop file that would let it appear in the application menu. Otherwise, /usr/bin/python has an interactive mode and bpython is a wrapper around that interactive mode that has like syntax highlighting, indenting, undo, etc.
-
Easiest Django Shell/Terminal
So, in this article, we will discuss bpython-django a fork from bpython that handles Django in a better way, currently it handles Models and can be extended as desired.
-
PyCharm console
Someone posted bpython which I'm pretty ecstatic about but always good to know options.
xonsh
- Ask HN: What are your current programming pet peeves?
-
Take Two: Eshell
I like the point raised by the author here about the power of elisp in the shell. For context, I've used emacs for well over a decade and write a good bit of elisp most weeks. However, I ended up finding elisp to be the wrong language for replacing a shell: it removes a lot of capabilities for not enough reward, imo: it's just the wrong abstraction because elisp's most natural transformations are very stateful and buffer based, and, additionally, it really doesn't provide that much expanded capability in the end (and this is despite the fact that I'm one of those people who would absolutely never leave my emacs environment even for web browsing if I could feasibly make it work consistently for the kinds of things I need).
However, despite disliking python, I found https://xon.sh/ to be really excellent and provides a lot of the benefits of eshell, but better, in my humble opinion: it has a well-enough structured base language that is essentially already built to be a library glue-code language, which works really well with the unix philosophy that traditional shells utilize (a good library is just a tool that does a thing really well).
-
Advanced Shell Scripting with Bash (2006) [pdf]
(Not sure about the equivalent of shlex.quote, but in the worst case, you can just use "from shlex import quote as q" or something).
So yes, there are good alternatives to bash - even Python based.
[0] https://xon.sh/
- Xonsh – A Python-Powered Shell
- Python Is the New Basic
-
Fish 4.0: The Fish of Theseus
Also, do consider xonsh.[1]
It's a Bash-like shell written in Python. It has significant overlap with the awesomeness of fish, and has the advantage of being able to write your shell scripts in a Python dialect. So if you know Python, the mental burden is much lower.
On top of that, it's cross platform, since Python is. No WSL needed.
I switched to it in 2018 and haven't looked back. Originally it was just because I wanted a better command prompt environment in Windows for work, but I liked it so much I switched to it in Linux as well.
(And yes, you can type any Python statement right in the command prompt).
[1] https://xon.sh/
-
A Second Search for Bash Scripting Alternatives
No xonsh? (https://xon.sh/) Seems to hit most of the requirements.
Been happily using it since 2018. It's great not to have to learn a whole other language just to do scripting.
-
The Dune Shell
Interesting thought experiment. Reminds me of my cousin's project Xonsh https://xon.sh/
-
Reasons I still love the fish shell
If you like this sort of thing, I strongly recommend also checking out the xonsh shell.
It's bash-like, but Python based. Works on both Windows and Linux. Has several of the benefits mentioned in this article. It's really nice that I don't need to learn another language for shell scripting - its language is Python, with some extensions to make it less tedious (e.g. easily executing commands without using os.system or subprocess).
Been using it since 2018.
https://xon.sh/
- Xonsh is a Python-powered shell
What are some alternatives?
ptpython - A better Python REPL
fish-shell - The user-friendly command line shell.
Jupyter Notebook (IPython) - Multi-user server for Jupyter notebooks
zx - A tool for writing better scripts
ipython - Official repository for IPython itself. Other repos in the IPython organization contain things like the website, documentation builds, etc.
nushell - A new type of shell