
Security News
Deno 2.4 Brings Back deno bundle, Improves Dependency Management and Observability
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.
This is a very simple Solr interface for Python.
$ pip install sunny
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.
>>> 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': ...
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:
>>> 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.
BSD
FAQs
Minimalistic interface to Solr.
We found that sunny demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.
Security News
CVEForecast.org uses machine learning to project a record-breaking surge in vulnerability disclosures in 2025.
Security News
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.