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
Built Distribution
Close
Hashes for gracie_feeds_api-2.2.1627934763.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e24dc3790614dbd9297fc2764ae5c2141467539bbf4399366bda4f7f45e099d2 |
|
MD5 | 1ca63308ac7b6ec59edd093934fd87f6 |
|
BLAKE2b-256 | d5c87e4b456aeb27fb20c6ebadce273c5c7b44833b34b917bd306f2289fd6e34 |
Close
Hashes for gracie_feeds_api-2.2.1627934763-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 889171f259cc7e5b0fae2fb17e937eeec7d61df4a2128f4fb5ec4868e0141a70 |
|
MD5 | deea921ba1c8448b2fd8c525010c31a9 |
|
BLAKE2b-256 | c1d11c7ecf8dd5eac1aaa0b56d2b66eafacf743f205db53a3c8d9562084b203b |