Investigate wtf you were working on... where is that damn file?
Project description
catscan, or mindgrep
Forgot where you put that file? Forgot what you were working on?
Wish you could grep against a file you forgot about?
Installation
From the project root directory::
$ pip install catscan
or::
$ python setup.py install
Usage
Simply run it with something that might be in the file, and it will check through files you worked with in your bash history::
# Find files you worked on that have the search string 'install' in them.
$ catscan 'install'
/home/johannestaas/dev/catscan/catscan/install.py
/home/johannestaas/dev/catscan/setup.py
/home/johannestaas/dev/catscan/README.md
/home/johannestaas/dev/catscan/catscan/install.py
/home/johannestaas/dev/mkpip/setup.py
Use --help/-h to view info on the arguments::
$ catscan --help
More complex scan behavior is also available::
# search using regex (python format)
$ catscan -r '201[56]-\d+-\d+'
# limit to files less than 1 megabyte
$ catscan -m 1 'foo'
# limit to files less than ~100 kilobytes
$ catscan -m 0.1 'foo'
# case insensitive search
$ catscan -i 'foo'
# Look for files that are not necessarily ASCII (using file magic)
$ catscan -a 'CAFEBABE'
# Quit after finding the first matching file
$ catscan -q 1 'foo'
Release Notes
:0.0.6: Removed start/end features to simplify runtime requirements :0.0.3: bugfree (enough) version for release :0.0.2: Finished main features :0.0.1: Project created
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file catscan-0.1.0.tar.gz.
File metadata
- Download URL: catscan-0.1.0.tar.gz
- Upload date:
- Size: 5.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.9 {"installer":{"name":"uv","version":"0.9.9"},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
922165b3572f4968dec7f567cb371701e5ee4ba52063c6d54c50e3d5cb81fa05
|
|
| MD5 |
737f1487af2b62a787a0c5ad507dade2
|
|
| BLAKE2b-256 |
853e9390a1dbf454ac48385d69ef8a3aee8ffe8073f2d46966d5268ce5286771
|
File details
Details for the file catscan-0.1.0-py3-none-any.whl.
File metadata
- Download URL: catscan-0.1.0-py3-none-any.whl
- Upload date:
- Size: 7.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.9 {"installer":{"name":"uv","version":"0.9.9"},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f0c6270b6f0d7b6f5aa0decbf012b4bda7653c70bb9b230262e9f77db89892be
|
|
| MD5 |
2f98e44b3b6d46989f02a790c9c1c904
|
|
| BLAKE2b-256 |
4fb0f725c202149eef4c02e09d58a44acd8505d306c5be49908089ef39128959
|