Code Monkey home page Code Monkey logo

pss's Introduction

Introduction: what is pss?

pss is a power-tool for searching inside source code files. pss searches recursively within a directory tree, knows which extensions and file names to search and which to ignore, automatically skips directories you wouldn't want to search in (for example .svn or .git), colors its output in a helpful way, and does much more.

If you're familiar with the ack tool, then you will find pss very similar (see https://github.com/eliben/pss/wiki/pss-and-ack).

Pre-requisites

pss needs only Python to run. It works with Python versions 2.6, 2.7 and 3.2+ on Linux and Windows. Some testing was done on Mac OS X and FreeBSD as well.

Installing

pss can be installed from PyPi (Python package index):

> pip install pss

Alternatively, you can download the source distribution either from PyPi or from the main Github project page. When you unzip the source distribution, run:

> python setup.py install

Running without installing

pss supports direct invocation even without installing it. This may be useful if you're on a machine without administrator rights, or want to experiment with a source distribution of pss.

Just unzip the pss distribution into some directory. Let's assume its full path is /path/to/pss. You can now run:

> /path/to/python /path/to/pss

And this will invoke pss as expected. This command can also be tied to an alias or placed in a shell (or batch) script for convenience.

How to use it?

pss is meant to be executed from the command line. Running it with no arguments or with -h will print a detailed usage message.

For some detailed usage examples, check out the Usage wiki page - https://github.com/eliben/pss/wiki/Usage-samples

License

pss is open-source software. Its code is in the public domain. See the LICENSE file for more details.

CI Status

pss has automatic testing enabled through the convenient Travis CI project. Here is the latest build status:

https://travis-ci.org/eliben/pss.png?branch=master

pss's People

Contributors

eliben avatar adamatan avatar jaywink avatar benhoyt avatar bernh avatar krillegh avatar pfmoore avatar rdburns avatar c-f-h avatar osyvokon avatar sherzberg avatar pekkaklarck avatar paul-ollis avatar macro avatar yaheath avatar crazymerlyn avatar gremmie avatar

Stargazers

Thayne Trevenen avatar

Watchers

James Cloos avatar Thayne Trevenen avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.