Gracie Feeds API python wrapper
Project description
This package provides a simple wrapper around the Toposlabs Gracie API platform.
Sample usage
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']))
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
gracie_feeds_api-6.8.4.tar.gz
(16.0 kB
view hashes)
Built Distribution
Close
Hashes for gracie_feeds_api-6.8.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e16a6881b9b940a273e74313e24eadb635cfd0b6d41c34b673942320505d12ae |
|
MD5 | fc192d9dfe447310bc8afca5d80df735 |
|
BLAKE2b-256 | bd46a8f98cb16d1b7767e18a8d757b7f1370740283582332916d29e3e1d2bb2d |