Skip to main content

Introduction

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

Metadata

Release files for pysourcesearch 0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pysourcesearch 0.1
File Size Uploaded Provenance Actions
pysourcesearch-0.1.tar.gz 26.4 kB Without provenance Details for pysourcesearch-0.1.tar.gz

Release files / pysourcesearch-0.1.tar.gz

Download URL pysourcesearch-0.1.tar.gz
Size 26.4 kB
Tags Source
SHA-256 checksum
How to use checksums
ee74a8ba8c01bd01d7a9213f7353c13505dd0e115923dbe63a6f9a630a480bd2
BLAKE2b-256 checksum
How to use checksums
a9aa41d35f05d873ea165940fe96ced7ed3c8820285e9d9d8eae3a99a81a7069
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for pysourcesearch 0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page