All Projects → overclockworked64 → pyhstr

overclockworked64 / pyhstr

Licence: MIT license
hstr, but for Python shells

Programming Languages

python
139335 projects - #7 most used programming language
shell
77523 projects

Projects that are alternatives of or similar to pyhstr

Hydrogen
Run code interactively, inspect data, and plot. All the power of Jupyter kernels, inside your favorite text editor.
Stars: ✭ 3,763 (+31258.33%)
Mutual labels:  ipython, repl
Radian
A 21 century R console
Stars: ✭ 878 (+7216.67%)
Mutual labels:  ipython, repl
Konch
Configures your Python shell.
Stars: ✭ 393 (+3175%)
Mutual labels:  ipython, repl
Pudb
Full-screen console debugger for Python
Stars: ✭ 2,267 (+18791.67%)
Mutual labels:  ipython, bpython
Nteract
📘 The interactive computing suite for you! ✨
Stars: ✭ 5,713 (+47508.33%)
Mutual labels:  ipython, repl
Ipython
Official repository for IPython itself. Other repos in the IPython organization contain things like the website, documentation builds, etc.
Stars: ✭ 15,107 (+125791.67%)
Mutual labels:  ipython, repl
irb
interactive Ruby
Stars: ✭ 243 (+1925%)
Mutual labels:  repl
boltcli
boltcli is the redis-cli for boltdb with Lua script support
Stars: ✭ 25 (+108.33%)
Mutual labels:  repl
nbmerge
A tool to merge / concatenate Jupyter (IPython) notebooks
Stars: ✭ 75 (+525%)
Mutual labels:  ipython
timeline-component-lwc
This component enables timeline view for Salesforce Record history.
Stars: ✭ 18 (+50%)
Mutual labels:  history
psysh.el
PsySH on Emacs, PHP interactive shell (REPL)
Stars: ✭ 27 (+125%)
Mutual labels:  repl
rail
Scalable RNA-seq analysis
Stars: ✭ 74 (+516.67%)
Mutual labels:  ipython
Workshop-GraphQL
A GraphQL Server made for the workshop
Stars: ✭ 22 (+83.33%)
Mutual labels:  repl
the-shrine-ng
🔴 A progressive web app of a retro soundboard. The Shrine comes with "Gude Laune!" and many more legendary sounds. 🔊
Stars: ✭ 16 (+33.33%)
Mutual labels:  history
mpv-repl
A graphical REPL for mpv input commands
Stars: ✭ 70 (+483.33%)
Mutual labels:  repl
Tutkain
A Sublime Text package for interactive Clojure development
Stars: ✭ 62 (+416.67%)
Mutual labels:  repl
1History
All your history in one file.
Stars: ✭ 335 (+2691.67%)
Mutual labels:  history
slacker
Slacker - Easy access to the Slack API and admin of workspaces/teams.
Stars: ✭ 14 (+16.67%)
Mutual labels:  repl
nedb-repl
The command-line tool for NeDB
Stars: ✭ 19 (+58.33%)
Mutual labels:  repl
spark-notebook-examples
Some notebook examples related to Apache Spark, IPython / Jupyter, Zeppelin
Stars: ✭ 49 (+308.33%)
Mutual labels:  ipython

pyhstr

build status codecov PyPI version Python Versions GitHub

screenshot

Inspired by hstr, pyhstr is a history suggest box that lets you quickly search, navigate, and manage your Python shell history. At this point, it supports the standard Python shell, IPython, and bpython. The plan is to support ptpython as well, but some help is needed for that to happen (see issue #7).

Installation

pip install pyhstr

Usage

The standard shell and bpython:

>>> from pyhstr import hh
>>> hh

IPython:

In [1]: import pyhstr
In [2]: %hh

Making an alias should be more convenient though, for example:

alias py='python3 -ic "from pyhstr import hh"'

Development

You will need poetry, preferably with these options in config:

virtualenvs.create = true
virtualenvs.in-project = true

Then clone the repo, cd into it, make a venv, activate it, and install the project:

git clone https://github.com/overclockworked64/pyhstr
cd pyhstr
poetry env use python3
. .venv/bin/activate
poetry install

To run tests, mypy checks, and style checks, you need to have Pythons:

  • 3.7
  • 3.8
  • 3.9

For installing all the Python versions, I recommend pyenv.

Once you have them, run:

tox

Licensing

Licensed under the MIT License. For details, see LICENSE.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].