Welcome, guest | Sign In | My Account | Store | Cart

Notice! PyPM is being replaced with the ActiveState Platform, which enhances PyPM’s build and deploy capabilities. Create your free Platform account to download ActivePython or customize Python with the packages you require and get automatic updates.

Download
ActivePython
INSTALL>
pypm install pysourcesearch

How to install pysourcesearch

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install pysourcesearch
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
0.1 Available View build log
Windows (64-bit)
0.1 Available View build log
Mac OS X (10.5+)
0.1 Available View build log
Linux (32-bit)
0.1 Available View build log
Linux (64-bit)
0.1 Available View build log
 
Imports
Lastest release
version 0.1 on Jan 5th, 2011

This package will allow you to create your own search engines for your packages and sets of packages. It's not perfect, but I find it useful. It's really fast and easier to find what you're looking for often.

You can search specifically for methods, classes and filenames or just do a full text search.

It's built on repoze.bfg, repoze.catalog and pygments.

Install

Start off with a virtualenv:

>>> virtualenv pysourcesearch --no-site-packages
>>> cd pysourcesearch
>>> ./bin/easy_install pysourcesearch
>>> ./bin/easy_install PasteScript

Then you can use the ini WSGI configuration provided with the package or create your own similar to this:

>>> [app:main]
>>> use = egg:pysourcesearch#app
>>> debug_notfound = false
>>> catalogs_location = %(here)s/catalogs
>>> reindex = False
>>> package_groups =
>>>     Plone:/Applications/Plone/buildout-cache/eggs
>>> skipped_paths =
>>>             tests
>>>
>>> [server:main]
>>> use = egg:Paste#http
>>> host = 0.0.0.0
>>> port = 6543

Then run:

>>> ./bin/paster serve pysourcesearch.ini

The first time it runs it will take some time to index everything. If you tail the catalog you'll be able to see the status of indexing.

>>> tail -f pysourcesearch.log

Configuration

Here are some of the WSGI configuration options:

* catalogs_location = Location where the indexes are stored
* reindex = If you want to reindex every time it's run
* package_groups = a list of locations to egg packages. This is normally a `buildout-cache/eggs` direction or a `lib/python2.6/site-packages` directory
* skipped_paths = a list of folders that you'd rather not index the contents of

0.1

  • Initial version

Subscribe to package updates

Last updated Jan 5th, 2011

Download Stats

Last month:1

What does the lock icon mean?

Builds marked with a lock icon are only available via PyPM to users with a current ActivePython Business Edition subscription.

Need custom builds or support?

ActivePython Enterprise Edition guarantees priority access to technical support, indemnification, expert consulting and quality-assured language builds.

Plan on re-distributing ActivePython?

Get re-distribution rights and eliminate legal risks with ActivePython OEM Edition.