This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description

This is a very simple Solr interface for Python.

Installation

`bash $ pip install sunny `

Usage

Create your Solr connection (actually a pool of connections) and then pass query parameters using simple dictionaries. The raw Solr result is returned as a Python dictionary.

`python >>> import sunny >>> solr = sunny.Solr('http://localhost:8080/solr') >>> solr.query({'q': 'office', ...             'facet': 'on', ...             'facet.field': ['network', 'runtime']}) {u'responseHeader': {u'status': 0, u'QTime': ... `

Parameters

Solr parameters are passed as dictionaries where every value may be either a string or a list of strings.

wt=json is passed with every request no matter what, because JSON is easy to convert to Python objects.

Example:

`python >>> import sunny >>> solr = sunny.Solr('http://localhost:8080/solr') >>> solr.query({'q': 'office', ...             'facet': 'on', ...             'facet.field': ['network', 'runtime']}) {u'responseHeader': {u'status': 0, u'QTime': ... `

The above is equivalent to this query string: ?wt=json&q=office&facet=on&facet.field=network&facet.field=runtime

If the orderedmultidict package is installed, you may use omdict instances instead of dictionaries.

License

BSD

Release History

Release History

0.0.4

This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

0.0.3

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

0.0.2

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
sunny-0.0.4.zip (5.8 kB) Copy SHA256 Checksum SHA256 Source Jul 15, 2013

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS HPE HPE Development Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting