1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224
  
     | 
    
      Metadata-Version: 2.2
Name: bpython
Version: 0.25
Home-page: https://www.bpython-interpreter.org/
Author: Bob Farrell, Andreas Stuehrk, Sebastian Ramacher, Thomas Ballinger, et al.
Author-email: bpython@googlegroups.com
License: MIT
Project-URL: GitHub, https://github.com/bpython/bpython
Project-URL: Documentation, https://docs.bpython-interpreter.org
Classifier: Programming Language :: Python :: 3
Requires-Python: >=3.9
Description-Content-Type: text/x-rst
License-File: LICENSE
Requires-Dist: curtsies>=0.4.0
Requires-Dist: cwcwidth
Requires-Dist: greenlet
Requires-Dist: pygments
Requires-Dist: pyxdg
Requires-Dist: requests
Requires-Dist: typing_extensions; python_version < "3.11"
Provides-Extra: clipboard
Requires-Dist: pyperclip; extra == "clipboard"
Provides-Extra: jedi
Requires-Dist: jedi>=0.16; extra == "jedi"
Provides-Extra: urwid
Requires-Dist: urwid; extra == "urwid"
Provides-Extra: watch
Requires-Dist: watchdog; extra == "watch"
.. image:: https://img.shields.io/pypi/v/bpython
    :target: https://pypi.org/project/bpython
.. image:: https://readthedocs.org/projects/bpython/badge/?version=latest
    :target: https://docs.bpython-interpreter.org/en/latest/
.. image:: https://img.shields.io/badge/code%20style-black-000000.svg
    :target: https://github.com/ambv/black
****************************************************************
bpython: A fancy interface to the Python interactive interpreter
****************************************************************
`bpython`_ is a lightweight Python interpreter that adds several features common
to IDEs. These features include **syntax highlighting**, **expected parameter
list**, **auto-indentation**, and **autocompletion**. (See below for example
usage).
.. image:: https://bpython-interpreter.org/images/math.gif
  :alt: bpython
  :width: 566
  :height: 348
  :align: center
bpython does **not** aim to be a complete IDE - the focus is on implementing a
few ideas in a practical, useful, and lightweight manner.
bpython is a great replacement to any occasion where you would normally use the
vanilla Python interpreter - testing out solutions to people's problems on IRC,
quickly testing a method of doing something without creating a temporary file,
etc.
You can find more about bpython - including `full documentation`_ - at our
`homepage`_.
==========================
Installation & Basic Usage
==========================
Installation using Pip
----------------------
If you have `pip`_ installed, you can simply run:
.. code-block:: bash
    $ pip install bpython
Start bpython by typing ``bpython`` in your terminal. You can exit bpython by
using the ``exit()`` command or by pressing control-D like regular interactive
Python.
===================
Features & Examples
===================
* Readline-like autocomplete, with suggestions displayed as you type.
* In-line syntax highlighting.  This uses Pygments for lexing the code as you
  type, and colours appropriately.
* Expected parameter list.  As in a lot of modern IDEs, bpython will attempt to
  display a list of parameters for any function you call. The inspect module (which
  works with any Python function) is tried first, and then pydoc if that fails.
* Rewind.  This isn't called "Undo" because it 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
  session is re-evaluated.  Use <control-R> to rewind.
* Edit the current line or your entire session in an editor. F7 opens the current
  session in a text editor, and if modifications are made, the session is rerun
  with these changes.
* Pastebin code/write to file.  Use the <F8> key to upload the screen's contents
  to pastebin, with a URL returned.
* Reload imported Python modules.  Use <F6> to clear sys.modules and rerun your
  session to test changes to code in a module you're working on.
=============
Configuration
=============
See the sample-config file for a list of available options.  You should save
your config file as **~/.config/bpython/config** (i.e.
``$XDG_CONFIG_HOME/bpython/config``) or specify at the command line::
  bpython --config /path/to/bpython/config
============
Dependencies
============
* Pygments
* curtsies >= 0.4.0
* greenlet
* pyxdg
* requests
* Sphinx >= 1.5 (optional, for the documentation)
* babel (optional, for internationalization)
* jedi (optional, for experimental multiline completion)
* watchdog (optional, for monitoring imported modules for changes)
* pyperclip (optional, for copying to the clipboard)
bpython-urwid
-------------
``bpython-urwid`` requires the following additional packages:
* urwid
===================================
Installation via OS Package Manager
===================================
The majority of desktop computer operating systems come with package management
systems. If you use one of these OSes, you can install ``bpython`` using the
package manager.
Ubuntu/Debian
-------------
Ubuntu/Debian family Linux users can install ``bpython`` using the ``apt``
package manager, using the command with ``sudo`` privileges:
.. code-block:: bash
    $ apt install bpython
In case you are using an older version, run
.. code-block:: bash
    $ apt-get install bpython
Arch Linux
----------
Arch Linux uses ``pacman`` as the default package manager; you can use it to install ``bpython``:
.. code-block:: bash
    $ pacman -S bpython
Fedora
------
Fedora users can install ``bpython`` directly from the command line using ``dnf``.
.. code-block:: bash
    $ dnf install bpython
    
GNU Guix
----------
Guix users can install ``bpython`` on any GNU/Linux distribution directly from the command line:
.. code-block:: bash
    $ guix install bpython
macOS
-----
macOS does not include a package manager by default. If you have installed any
third-party package manager like MacPorts, you can install it via
.. code-block:: bash
    $ sudo port install py-bpython
==========
Known Bugs
==========
For known bugs please see bpython's `known issues and FAQ`_ page.
======================
Contact & Contributing
======================
I hope you find it useful and please feel free to submit any bugs/patches
suggestions to `Robert`_ or place them on the GitHub
`issues tracker`_.
For any other ways of communicating with bpython users and devs you can find us
at the community page on the `project homepage`_, or in the `community`_.
Hope to see you there!
.. _homepage: http://www.bpython-interpreter.org
.. _full documentation: http://docs.bpython-interpreter.org/
.. _issues tracker: http://github.com/bpython/bpython/issues/
.. _pip: https://pip.pypa.io/en/latest/index.html
.. _project homepage: http://bpython-interpreter.org
.. _community: http://docs.bpython-interpreter.org/community.html
.. _Robert: robertanthonyfarrell@gmail.com
.. _bpython: http://www.bpython-interpreter.org/
.. _Curses: http://www.lfd.uci.edu/~gohlke/pythonlibs/
.. _pyreadline: http://pypi.python.org/pypi/pyreadline/
.. _known issues and FAQ: http://bpython-interpreter.org/known-issues-and-faq.html
 
     |