Skip to main content

A simple tool to search code in a GitHub repository.

Project description

CodeSeeker

Search code through a GitHub repo.

GitHub Contributor Covenant GitHub languages GitHub repo size Github last-commit maintenance GitHub release (latest by date) PyPI - Format Downloads

          .                 .          
,-. ,-. ,-| ,-. ,-. ,-. ,-. | , ,-. ,-.
|   | | | | |-' `-. |-' |-' |<  |-' |  
`-' `-' `-^ `-' `-' `-' `-' ' ` `-' '  

codeseeker is simple tool to search for code on GitHub. By default it searches to the contents of the source code file.

Installation

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

Example

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

Contribution

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.

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

codeseeker-0.0.9.tar.gz (5.9 kB view hashes)

Uploaded Source

Built Distribution

codeseeker-0.0.9-py3-none-any.whl (7.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page