Debian Codegraph @

bpython.egg-info/PKG-INFO

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