Skip to main content

greps

Tests GitHub License codecov PyPI - Python Version Code style

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'

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

greps-1.0.4.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

greps-1.0.4-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

Details for the file greps-1.0.4.tar.gz.

File metadata

  • Download URL: greps-1.0.4.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.11.7 Linux/6.2.0-1018-azure

File hashes

Hashes for greps-1.0.4.tar.gz
Algorithm Hash digest
SHA256 fc455c2b1c992e13984e4ebc66cd7729bbac63f462186a33876c935a96f079b1
MD5 1a45c5fb41686198eeb6dce92b91dd72
BLAKE2b-256 1bde3f8cac3e7d56a0c34ff856ac314487acd7ccc4202d603eb8cf317219b691

See more details on using hashes here.

File details

Details for the file greps-1.0.4-py3-none-any.whl.

File metadata

  • Download URL: greps-1.0.4-py3-none-any.whl
  • Upload date:
  • Size: 3.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.11.7 Linux/6.2.0-1018-azure

File hashes

Hashes for greps-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 0fbbdbc1192b16dfaaf0c65a44b363d5b7a0f010145d2194a9bf65f8a16271f0
MD5 07f2b8e8db8d8d77be65771abf956f70
BLAKE2b-256 3b329cf39bf67e8629c2c33c5c9069d24a7d11e8ec686bf37d37217f77a70a02

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.0.4 This release

2 files

1.0.3

2 files

1.0.2

2 files

1.0.1

2 files

0.1.0

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page