Skip to main content

simple command-line parser of GitHub Linguist Ruby program.

Project description

Build Status Coverage Status Build status

linguist-python

Simple command-line wrapper of Ruby-based Github Linguist

Prereqs

Since we are merely parsing the original Linguist command-line output, we need to install Linguist as usual. Assuming Linux:

  1. setup RubyGems:
    apt install ruby-dev libssl-dev libicu-dev zlib1g-dev libcurl4-openssl-dev
    
    gem update --system
    
  2. be sure Gems are installed to home directory, NOT system (no sudo) by adding to ~/.bashrc:
    # Install Ruby Gems to ~/gems
    export GEM_HOME=$HOME/gems
    export PATH=$HOME/gems/bin:$PATH
    
  3. install Github Linguist:
    gem install github-linguist
    

Install

pip install -e .

Usage

From Terminal:

ghlinguist

You can also import as a Python module:

import ghlinguist as ghl

langs = ghl.linguist('~/mypath')

Notes

ghLinguist parses text output from GitHub Linguist, which is a Ruby program.

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

ghlinguist-0.9.0.tar.gz (3.2 kB view details)

Uploaded Source

File details

Details for the file ghlinguist-0.9.0.tar.gz.

File metadata

  • Download URL: ghlinguist-0.9.0.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/39.2.0 requests-toolbelt/0.8.0 tqdm/4.23.3 CPython/3.7.0

File hashes

Hashes for ghlinguist-0.9.0.tar.gz
Algorithm Hash digest
SHA256 49d850031e1442192e5a8e987d2b4b11309c5492756ee8d55dd2435850dbf2d2
MD5 056af5dc926239effeb2d757c043fe09
BLAKE2b-256 a09ddfd0176f2442b3bad578de951d9949a96e7ef4ba3f0469f2672d6178b6ba

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