greps
greps is a super simple ipython magic that allow you to use grep over IPython output.
installation
pip install greps
manually loading:
# Inside an IPython shell
%load_ext greps
Automatic loading:
echo "c.InteractiveShellApp.extensions = ['greps']" > ~/.ipython/profile_default/ipython_config.py
Usage
On previous output:
In [1]: {i:i for i in range(3)}
Out[1]:
{0: 0,
1: 1,
2: 2,
}
In [2]: %greps 1
Out[2]: ' 1: 1,\n'
On specific output line:
In [1]: 1
Out[1]: 1
In [2]: 2
Out[2]: 2
In [3]: 3
Out[3]: 3
In [4]: 4
Out[4]: 4
In [5]: %greps -l 2 2
Out[5]: '2\n'
Metadata
Release files for greps 1.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| greps-1.0.4.tar.gz | 3.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| greps-1.0.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 6.3 kB
Release files / greps-1.0.4.tar.gz
| Download URL | greps-1.0.4.tar.gz |
|---|---|
| Size | 3.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fc455c2b1c992e13984e4ebc66cd7729bbac63f462186a33876c935a96f079b1
|
|
BLAKE2b-256 checksum How to use checksums |
1bde3f8cac3e7d56a0c34ff856ac314487acd7ccc4202d603eb8cf317219b691
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.7.1 CPython/3.11.7 Linux/6.2.0-1018-azure
|
Release files / greps-1.0.4-py3-none-any.whl
| Download URL | greps-1.0.4-py3-none-any.whl |
|---|---|
| Size | 3.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0fbbdbc1192b16dfaaf0c65a44b363d5b7a0f010145d2194a9bf65f8a16271f0
|
|
BLAKE2b-256 checksum How to use checksums |
3b329cf39bf67e8629c2c33c5c9069d24a7d11e8ec686bf37d37217f77a70a02
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.7.1 CPython/3.11.7 Linux/6.2.0-1018-azure
|