pyhstr
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"'
Screencast
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/adder46/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.
Metadata
Release files for pyhstr 0.5.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pyhstr-0.5.2.tar.gz | 14.7 kB | Without provenance | Details for pyhstr-0.5.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pyhstr-0.5.2-py3-none-any.whl | Python 3 | none | any | Details for pyhstr-0.5.2-py3-none-any.whl |
Total release size: 32.0 kB
Release files / pyhstr-0.5.2.tar.gz
| Download URL | pyhstr-0.5.2.tar.gz |
|---|---|
| Size | 14.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7293ae8d5712ed6c80ef5681d7d6672483bc32b9c2db92255886bef58113afd4
|
|
BLAKE2b-256 checksum How to use checksums |
d59d36c4c73536452228b0c7c09972a2d9a3798af9dd31adf74c6a48f4adc885
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.4 CPython/3.8.5 Linux/5.4.0-60-generic
|
Release files / pyhstr-0.5.2-py3-none-any.whl
| Download URL | pyhstr-0.5.2-py3-none-any.whl |
|---|---|
| Size | 17.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
96cec294e003fc0dd7606b568f18153d1b9ab8044cbe811109ea547245b61e95
|
|
BLAKE2b-256 checksum How to use checksums |
fe5fd9531e77801b320c462830b6476d2376e3807c52a624840439cf388680bd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.4 CPython/3.8.5 Linux/5.4.0-60-generic
|
Security for pyhstr 0.5.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.