:orphan:

.. _section_example_fastrocs_shapedatabaseclient:

Shape Database Client
======================

.. code-block::

   ShapeDatabaseClient.py <server:port> <query> <results> [num_hits = 100]

Example script to send a query to a specified
ShapeDatabaseServer. Rudimentary progress is shown as a fraction
printed to standard out.

This is meant to be a simple example that can be customized to a
particular client application. For example, the Vida client was
adapted from this script.

.. only:: oehtml

   .. admonition:: Download code

         :download:`ShapeDatabaseClient.py <../../../../../wrappers/python/examples/fastrocs/ShapeDatabaseClient.py>`

      .. :ref:`Full listing. <listing-ShapeDatabaseClient.py>`

      .. literalinclude:: ../../../../../wrappers/python/examples/fastrocs/ShapeDatabaseClient.py


.. only:: oepdf

   .. oe:source:: ShapeDatabaseClient.py
      :language: python
