Search code through a GitHub repo.
. .
,-. ,-. ,-| ,-. ,-. ,-. ,-. | , ,-. ,-.
| | | | | |-' `-. |-' |-' |< |-' |
`-' `-' `-^ `-' `-' `-' `-' ' ` `-' '
codeseeker
is simple tool to search for code on GitHub.
By default it searches to the contents of the source code file.
codeseeker
is available on PyPi (MIT license)
and installation can be performed by running pip
python -m pip install codeseeker
To upgrade the package:
python -m pip install codeseeker --upgrade
To delete the package:
python -m pip uninstall codeseeker
To search for a file that contains "cube" in a repository:
> python -m codeseeker cube
1 file found.
repository/path/to/file.py
To open the file in a web browser
> python -m codeseeker cube -o
1 file found.
repository/path/to/file.py
Opening in a web browser...
To get the file:
> python -m codeseeker fibonacci --get
soluciones/serie_fibonacci.py
sololearn/python_core/code_project_72_Fibonacci.py
soluciones/menu_ejercicios.py
soluciones/menu_ejercicios_naive.py
soluciones/fibonacci.py
5 file(s) found(s).
Downloading and creating file(s)...
Done!
You can also use it like this:
> codeseeker calendar -r python/cpython
Lib/test/test_calendar.py
Lib/calendar.py
Lib/test/test_strftime.py
Lib/_strptime.py
Lib/zoneinfo/_zoneinfo.py
Tools/scripts/mailerdaemon.py
Lib/datetime.py
Lib/email/_parseaddr.py
Lib/test/test_imaplib.py
Lib/imaplib.py
Lib/mailbox.py
Lib/http/server.py
Lib/ssl.py
Lib/http/cookiejar.py
Lib/test/datetimetester.py
15 file(s) found(s).
Help command:
> codeseeker -h
or:
> codeseeker --help
If you'd like to contribute, fork the repository, commit your changes to main branch and send a pull request. Make sure you add yourself to authors.