simple command-line parser of GitHub Linguist Ruby program.
Project description
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:
- setup RubyGems:
apt install ruby-dev libssl-dev libicu-dev zlib1g-dev libcurl4-openssl-dev gem update --system
- 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
- 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 hashes)