Skip to main content

Angus python SDK

Project description

Angus Python SDK's documentation

Angus Python SDK is a python client library for ` <>`_ perception web services.
Please look at full API `here <>`_.


**Automatic installation**::

pip install angus-sdk-python

Angus SDK is listed in `PyPI <>`_ and
can be installed with ``pip`` or ``easy_install``. Note that the
source distribution includes demo applications that are not present
when Angus SDK is installed in this way, so you may wish to download a
copy of the source tarball as well.

**Manual installation**: Download `here <>`_

.. parsed-literal::

tar xvfz angus-sdk-python-0.0.10.tar.gz
cd angus-sdk-python-0.0.10
python build
sudo python install

The Angus SDK source code is `hosted on GitHub <>`_.

angus-sdk-python ships with a simple command tool 'angusme' that makes it easy to configure your environment.

You can explore all options by typing:

.. parsed-literal::
$ angusme --help


In order to authenticate your request to servers, you must register `here <>`_, and use the provided credentials as shown below.
It is free and takes 1 minute.

In a terminal, type:

.. parsed-literal::

$ angusme
Please copy/paste your client_id: ********-****-****-****-************
Please copy/paste your access_token: ********-****-****-****-************

Note that on ``Windows`` system, the previous command might not work.
In that case use this command instead (replace by your Python installation path):

.. parsed-literal::

$ python C:\\full\\path\\to\\Python<version>\\Scripts\\angusme

Hello, world

Here is a simple "Hello, world" example for Angus SDK (replace macgyver.jpg by your own image with a face to detect)::

import angus

conn = angus.connect()
service ='face_detection', version=1)
job = service.process({'image': open('./macgyver.jpg')})
print job.result['faces']

Hello, world (asynchronous)

Here is the same simple example but with a non-blocking call to 'process'. The provided callback is called whenever the request terminates::

import angus

def f(job):
print job.result['faces']

conn = angus.connect()
service ='face_detection', version=1)
job = service.process({'image': open('./macgyver.jpg')}, callback=f)
### do stuff here while waiting for the server response.

Go further

- The complete API documentation is available `here <>`_.
- See "Discussion and support" bellow.

Discussion and support

You can contact team at ` <>`_, and report bugs on the `GitHub issue tracker <>`_.

For technical issues or question, start on Angus forum to get support
by sending email on ` <>`_ or
by using online web interface

This web site and all documentation is licensed under `Creative
Commons 3.0 <>`_.

Angus Python SDK is an open source technology. It is available under the `Apache License, Version 2.0. <>`_. Please read LICENSE and NOTICE files for more information.

Copyright 2015-2017,

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for angus-sdk-python, version 0.0.13
Filename, size File type Python version Upload date Hashes
Filename, size angus-sdk-python-0.0.13.tar.gz (16.1 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page