bpython
ptpython
bpython | ptpython | |
---|---|---|
15 | 20 | |
2,720 | 5,346 | |
0.2% | 0.2% | |
6.2 | 6.9 | |
14 days ago | 5 days ago | |
Python | Python | |
GNU General Public License v3.0 or later | BSD 3-clause "New" or "Revised" License |
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.
ptpython
-
Show HN: FastOpenAPI – automated docs for many Python frameworks
Because not everyone wants to be a part of the asyncio trend.
Asyncio in Python is a poor feature that splits the language's ecosystem into 2 mutually-incompatible worlds, something Python only gets away with because it's too big to fail.
Meanwhile we've had Gevent for decades now. It gives us async that you can forget you have. Because rather than making code async, it makes the VM async.
Gevent could have been merged into CPython, but they chose explicit "structured concurrency" and the rest is history. History of sometimes moving forward and sometimes straying from the path and getting lost.
And lost Python's asyncio is. PDB, which lots of other debuggers base on, is still broken (cannot use await). The ecosystem? IPython uses asyncio internally so it cannot easily be embedded in a working async program. The only embeddable REPL I was able to find is this: https://github.com/prompt-toolkit/ptpython/blob/master/examp...... well, it looks like someone is working on it now, years after asyncio's first release.
Overall, lots of churn to get something as good as Gevent, which we had in Python 2.7, or even before.
If a similar amount of effort was spent on first-class support for code hot-reloading and live program inspection, we would get a massive boost of productivity. But somehow even otherwise bright people choose to reimplement working solutions into something objectively worse, meanwhile our development/debugging loop still emulates loading punchcards into mainframes.
- Prompt-toolkit/ptpython: A better Python REPL
-
Modern Python REPL in Emacs using VTerm
As alluded to in Poetry2Nix Development Flake with Matplotlib GTK Support, I’m currently in the process of getting my “new” python workflow up to speed. My second problem, after dependency and environment management, was that fancy REPLs like ipython or ptpython don’t jazz well with the standard comint based inferior python repl that comes with python-mode. One can basically only run ipython with the --simple-prompt flag which removes features like syntax-highlighting and auto-completion. Especially annoying is, that only the tkinter backend for matplotlib works in this mode.
-
Color Django shell by development environment
Ptpython reads from a configuration file where we can specify custom keybindings and the REPL colorscheme. The default configuration file can be copied from prompt-toolkit/ptpython/blob/master/examples/ptpython_config/config.py.
-
Why Lisp?
If you like using the REPL, for Python I recommend you try https://github.com/prompt-toolkit/ptpython
- Is it best just to use the terminal for python?
-
Tools for productivity
REPL??? Do you have a very-easy-to-use way of running and testing your code? From vim-slime to nvim sniprun to autocommands with the built in terminal, to an external repl like ptpython (for python obviously). iron.nvim and conjure are two other neovim repl plugins. There are many ways of running the code that you're working on, and having something that makes this really easy for you is pretty essential. (sometimes I use inotifytools on linux to literally just run the script every time I save it.)
-
Is there a vim mode for zsh ?
I use ptpython for my python repl https://github.com/prompt-toolkit/ptpython. I find it very convenient because it has a vim mode, and many vim similarities.
-
Is there a way to make the Python IDLE auto-close brackets and quotations?
A library like ptpython should be what you're looking for, however this probably isn't an option for an exam setting.
-
Where do I go after learning lua?
create a repl to the standard that ptpython sets for python (both croissant and ilua leave a lot to be desired)
What are some alternatives?
Jupyter Notebook (IPython) - Multi-user server for Jupyter notebooks
ipython - Official repository for IPython itself. Other repos in the IPython organization contain things like the website, documentation builds, etc.
pgcontents - A Postgres-backed ContentsManager implementation for Jupyter
utop - Universal toplevel for OCaml