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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file codeseeker-0.0.9.tar.gz.

File metadata

  • Download URL: codeseeker-0.0.9.tar.gz
  • Upload date:
  • Size: 5.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/29.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.61.2 importlib-metadata/3.10.0 keyring/23.0.1 rfc3986/1.5.0 colorama/0.4.4 CPython/3.7.9

File hashes

Hashes for codeseeker-0.0.9.tar.gz
Algorithm Hash digest
SHA256 d0b512e6069728dbad4fa4e9825bafc6dc61b1641d1523efa454f63d11f8b801
MD5 54aac162bc1081186582194f7d391bb7
BLAKE2b-256 ce742dc790e51d7f85c023ae3695b3b48fa2835430b701932d4d3b405ce6d680

See more details on using hashes here.

File details

Details for the file codeseeker-0.0.9-py3-none-any.whl.

File metadata

  • Download URL: codeseeker-0.0.9-py3-none-any.whl
  • Upload date:
  • Size: 7.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/29.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.61.2 importlib-metadata/3.10.0 keyring/23.0.1 rfc3986/1.5.0 colorama/0.4.4 CPython/3.7.9

File hashes

Hashes for codeseeker-0.0.9-py3-none-any.whl
Algorithm Hash digest
SHA256 d0555c6ef33a760ab4bebe1cedf89b1d9a4bdd43baecdb9565bf5ebbe8befc64
MD5 fad07e9801be51e674aa752dcb867255
BLAKE2b-256 b337857d40b5459d3525ed1212e368796f41c42950d22591ab1af56fb6afc34d

See more details on using hashes here.

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