Skip to main content

Searches for a file in a VCS

Project description

Repo scout # Repo-Scout Searches for a file in a VCS


Usage

Within a script

>>> from service.repo_scout import RepoScout
>>> scout = RepoScout('GitHub')
>>> scout.find('Parcks','plugins','Laravel.ppl')
u'https://raw.githubusercontent.com/Parcks/plugins/master/debian/Laravel.ppl'

From the CLI

Parameters

-h, --help           show this help message and exit
-p, --provider PROV  The name of the VCS provider (Default: GitHub)
-o, --owner OWNER    The name of the owner of the repository
-n, --name NAME      The name of the repository to search in
-m, --method METHOD  Indicates if the file should be searched in a directory
                     or just retrieve the first occurrence (Default: First)
-f, --file FILE      The name of the file to find
-d, --directory DIR  The path in the repository where the file should be
                     searched

Example

Find first occurrence
jvalck@Setarit-DTP:~/repo_scout$ python main.py -o Parcks -n plugins -f Laravel.ppl
https://raw.githubusercontent.com/Parcks/plugins/master/debian/Laravel.ppl
Find in directory
  • Example 1: One level deep

    jvalck@Setarit-DTP:~/repo_scout$ rscout -o Parcks -n plugins -f Laravel.ppl -m InDirectory -d debian
    https://raw.githubusercontent.com/Parcks/plugins/master/debian/Laravel.ppl
  • Example 2: two levels deep

    jvalck@Setarit-DTP:~/repo_scout$ rscout -o Parcks -n core -f user_input.py -m InDirectory -d src/cli
    https://raw.githubusercontent.com/Parcks/core/master/src/cli/user_input.py

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

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

Repo_Scout-1.0.0-py3.6.egg (40.5 kB view details)

Uploaded Egg

Repo_Scout-1.0.0-py2.7.egg (39.5 kB view details)

Uploaded Egg

File details

Details for the file Repo_Scout-1.0.0-py3.6.egg.

File metadata

  • Download URL: Repo_Scout-1.0.0-py3.6.egg
  • Upload date:
  • Size: 40.5 kB
  • Tags: Egg
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for Repo_Scout-1.0.0-py3.6.egg
Algorithm Hash digest
SHA256 27d3216b2261ff9c0afec2a8e511020056190b12ca4f46df9592c7a97d5e8a25
MD5 edfbb1107f691d9e5bf55b610b3cc45f
BLAKE2b-256 5155eb3cdd491ef49e792adf16df216ae91aa774034eb630439b8c58f77e5503

See more details on using hashes here.

File details

Details for the file Repo_Scout-1.0.0-py2.7.egg.

File metadata

  • Download URL: Repo_Scout-1.0.0-py2.7.egg
  • Upload date:
  • Size: 39.5 kB
  • Tags: Egg
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for Repo_Scout-1.0.0-py2.7.egg
Algorithm Hash digest
SHA256 d04cab7f260257d3110008a95ffd479f2366b405dc0deec6d789d1fe9b543163
MD5 8b25ef7d1f1b677de1fc493af38d765f
BLAKE2b-256 9053f4244eb071d828bceea6cc45026e7e029ebea41f59f3d0d661e10fc269d0

See more details on using hashes here.

Supported by

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