tejal29 / grepg Goto Github PK
View Code? Open in Web Editor NEWPython command line client for greppage
Python command line client for greppage
โ grepg.vim git:(master) grepg -u evidanary -t git -s "rename branch" --match-op AND
Invalid match operator 'AND'. Can only be ['and', 'or']
I get the following exception
Exception:
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 122, in main
status = self.run(options, args)
File "/usr/lib/python2.7/dist-packages/pip/commands/install.py", line 283, in run
requirement_set.install(install_options, global_options, root=options.root_path)
File "/usr/lib/python2.7/dist-packages/pip/req.py", line 1436, in install
requirement.install(install_options, global_options, _args, *_kwargs)
File "/usr/lib/python2.7/dist-packages/pip/req.py", line 672, in install
self.move_wheel_files(self.source_dir, root=root)
File "/usr/lib/python2.7/dist-packages/pip/req.py", line 902, in move_wheel_files
pycompile=self.pycompile,
File "/usr/lib/python2.7/dist-packages/pip/wheel.py", line 206, in move_wheel_files
clobber(source, lib_dir, True)
File "/usr/lib/python2.7/dist-packages/pip/wheel.py", line 193, in clobber
os.makedirs(destsubdir)
File "/usr/lib/python2.7/os.py", line 157, in makedirs
mkdir(name, mode)
OSError: [Errno 13] Permission denied: '/usr/local/lib/python2.7/dist-packages/grepg-0.0.5.dist-info'
Storing debug log for failure in /home/yranadive/.pip/pip.log
When calling any Grepg command on windows (Python 3.5.2) I get the following error:
Grepg is installed using pip install grepg
Traceback (most recent call last):
File "C:\Users\Viktor\AppData\Local\Programs\Python\Python35-32\Scripts\grepg-script.py", line 9, in <module>
load_entry_point('grepg==0.1.0', 'console_scripts', 'grepg')()
File "c:\users\viktor\appdata\local\programs\python\python35-32\lib\site-packages\pkg_resources\__init__.py", line 542, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "c:\users\viktor\appdata\local\programs\python\python35-32\lib\site-packages\pkg_resources\__init__.py", line 2569, in load_entry_point
return ep.load()
File "c:\users\viktor\appdata\local\programs\python\python35-32\lib\site-packages\pkg_resources\__init__.py", line 2229, in load
return self.resolve()
File "c:\users\viktor\appdata\local\programs\python\python35-32\lib\site-packages\pkg_resources\__init__.py", line 2235, in resolve
module = __import__(self.module_name, fromlist=['__name__'], level=0)
File "c:\users\viktor\appdata\local\programs\python\python35-32\lib\site-packages\grepg\main.py", line 6, in <module>
from twitter.common import app, log
File "c:\users\viktor\appdata\local\programs\python\python35-32\lib\site-packages\twitter\common\app\__init__.py", line 39, in <module>
from .application import Application
File "c:\users\viktor\appdata\local\programs\python\python35-32\lib\site-packages\twitter\common\app\application.py", line 39, in <module>
from twitter.common.process import daemonize
File "c:\users\viktor\appdata\local\programs\python\python35-32\lib\site-packages\twitter\common\process\__init__.py", line 7, in <module>
from .process_provider_ps import ProcessProvider_PS
File "c:\users\viktor\appdata\local\programs\python\python35-32\lib\site-packages\twitter\common\process\process_provider_ps.py", line 2, in <module>
from process_handle_ps import ProcessHandlePs
ImportError: No module named 'process_handle_ps'
Screenshot link is broken in README.md
https://github.com/tejal29/grepg/blob/master/src/python/grepg/lib/grepg_client.py#L79
Can we search the command field in addition to the description?
Example:
grepg -t unix
Should show topics like "UNIX and Ubuntu", "UNIX", etc.
--help does not show match-op
โ grepg.vim git:(master) grepg --help
Usage: grepg -u <user_name> [-t <topic_name> -s <search_term>]
Options:
-h, --help, --short-help
show this help message and exit.
--long-help show options from all registered modules, not just the
main module.
-v, --verbose Log to stdout [default: False]
-f, --force Force fetch cheats and update cached cheats. Default
Cache TTL 10 seconds [default: False]
-u USER, --user=USER username
-t TOPIC, --topic=TOPIC
topic
-s SEARCH, --search=SEARCH
text to search
-c, --colorize colorize output
-n, --no-colorize no colorize output [default: True]
We should log the query history in case someone wants to look at them on their local filesystem.
Perhaps the option should be called --log-queries-path=DIRECTORY_NAME
not generating a log when not supplied.
Filename could be something like grepg-queries.log with tab separated fields (IOS8901 date, hits, query) e.g.
2016-04-01T13:01:02Z\truby open file\t3
2016-05-09T12:01:02Z\tpython open file\t0
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.