Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

Tornado HTTP client for Solr

Project Description

Tornado Solr Client

Tornado http client for Solr 5.X.X.


Creating a collection and adding a document:

from functools import partial
from solnado   import SolrClient
from tornado   import ioloop, gen

c = SolrClient()

def create_core():
    p = partial(
    res = yield gen.Task(p)
    raise gen.Return(res)

def create_collection():
    p = partial(
    res = yield gen.Task(p)
    raise gen.Return(res)

def index_documents(docs):
    p = partial(
       **{'commitWithin': 0}
    res = yield gen.Task(p)
    raise gen.Return(res)

def main_coro():
    yield create_core()
    yield create_collection()
    res = yield index_documents([
            'Title': 'A tale of two documents',
            'id': '456',
            'Title': 'It was the best of times',

    print res.body, res.code



Solnado provides a simple to use API to interact with Solr.

Use the following environment variables:

export SOLR_HOST=localhost

export SOLR_PORT=8983

To get the current solr status:

solnado status

Create a collection:

solnado collection create foo

Delete a collection:

solnado collection delete foo

Query a collection

solnado search foo “*”

Create a core:

solnado core create foo

Delete a core:

solnado core delete foo


Copyright 2015 Daniel Hodges

Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.


Tested with python: 2.6, 2.7, 3.2, 3.3, 3.4, 3.5 and pypy

Build status

Release History

This version
History Node


History Node


History Node


History Node


History Node


History Node


History Node


History Node


History Node


Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, Size & Hash SHA256 Hash Help File Type Python Version Upload Date
(10.3 kB) Copy SHA256 Hash SHA256
Source None Dec 11, 2015

Supported By

Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Kabu Creative Kabu Creative UX & Design Google Google Cloud Servers Fastly Fastly CDN StatusPage StatusPage Statuspage DigiCert DigiCert EV Certificate