Metadata-Version: 2.1
Name: gracie-dictionary-api
Version: 100.2.1.1704919081
Summary: Gracie Dictionary API python wrapper
Home-page: https://gracie-dictionary-api-documentation.readthedocs.io
Download-URL: https://pypi.org/project/gracie-dictionary-api/
Author: Darshan Gencarelle
Author-email: darshan.gencarelle@toposlabs.com
License: commercial
Classifier: Development Status :: 5 - Production/Stable
Classifier: Environment :: MacOS X
Classifier: Environment :: Win32 (MS Windows)
Classifier: Environment :: X11 Applications
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: BSD License
Classifier: Operating System :: MacOS :: MacOS X
Classifier: Operating System :: Microsoft :: Windows
Classifier: Operating System :: POSIX :: Linux
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.3
Classifier: Programming Language :: Python :: 3.4
Classifier: Topic :: Software Development :: Libraries :: Python Modules
License-File: LICENSE.txt

*****************************
Gracie APIs Wrapper Overview
*****************************

This package provides a simple wrapper around the Toposlabs Gracie API platform.


Sample usage
############
.. code:: python3

    import gracie_dictionary_api as GracieDictionayAPI

    def gracie_connect():
        sso_server = <full url to sso sever>
        login_name = <login name>
        login_password = <login password>
        host = <host or ip of server>
        port = 443

        e_api = GracieDictionayAPI.GracieAPI(host, sso_server, port, login_name, login_password)

        # print currently logged in user information
        print(e_api.call_api('usersController', 'whoAmI'))

        # process some text and print JSON results
        print(e_api.call_api('searchController',
                             'processText',
                             text='Boston is the capital and most populous city of the Commonwealth of Massachusetts in the United States'))
