Skip to content

ahmadhajmosa/python-client-sdk

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

[DEPRECATED] python-client-sdk

This library is deprecated and no longer actively developed. It has been replaced by retina-sdk.py.

cortical.io

Welcome to the cortical.io Retina Python client source code page.

Release Version: 2.2.0

This page contains

  • Introduction
  • Dependencies
  • How to use
  • Change Log

Introduction

cortical.io's Python client - a simple Python http client which simplifies the communication with the Retina server using the Retina's REST API. The source code is split into the following:

  • /cortical Endpoint files - One for each endpoint group.
  • /cortical/models - The return object classes.
  • /tests - Unit tests of all endpoints and examples of their usage.

Dependencies

cortical.io's Retina Python client has been tested with Python version 2.7 and with all 2.x.x versions of cortical.io's api.

To use the API you will need to obtain an api key.

How to use/build

  • You will need Python (version 2.7 has been tested).
  • Install the Requests library, for example using pip install requests.
  • Clone all the sources from our Github repository.
  • Add the location of the cloned repository to your PYTHONPATH

You should now be able to use the client in the following way (obtaining a sementic representation of the term apple):

from cortical.client import ApiClient
from cortical.termsApi import TermsApi

client = ApiClient(apiKey="your_api_key", apiServer="http://api.cortical.io/rest")
api = TermsApi(client)
terms = api.getTerm("en_associative", term="apple", get_fingerprint=True)
print terms[0].fingerprint.positions

For further documentation about the Retina-API and information on cortical.io's 'Retina' technology please see: http://www.cortical.io/developers_tutorials.html. Also the tests folder contains more examples of how to use the client.

If you have any questions or problems please visit our forum: http://www.cortical.io/developers_forum.html

Change Log

v 2.2.0

  • new Classfiy api with /classify/create_category_filter
  • new /text/detect_language endpoint
  • new /compare/bulk endpoint

v 2.1.0

  • Initial release version.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%