Metadata-Version: 2.1
Name: gracie-feeds-api
Version: 23.3.1.1691689562
Summary: Gracie Feeds API python wrapper
Home-page: https://gracie-feeds-api-documentation.readthedocs.io
Download-URL: https://pypi.org/project/gracie-feeds-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:: python

    import gracie_feeds_api as GracieFeedsAPI

    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 = GracieFeedsAPI(host, sso_server, port, login_name, login_password)

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

        # create a new project - exception will be thrown if project already exists
        project = e_api.call_api('projectsController', 'add', name='Test Project')

        # process some text and print JSON results
        print(e_api.call_api('projectsController',
                             'processText',
                             text='Boston is the capital and most populous city of the Commonwealth of Massachusetts in the United States',
                             privacyMode=False,
                             projectId=project['id']))
