Skip to main content

Mangrove Surface SDK

Project description

Mangrove Surface Python SDK

.. image::

.. image::
:alt: Documentation Status

.. _documentation:


A complete documentation is available there: documentation_


Install the python SDK package:

.. code-block:: python

pip install mangrove-surface

or using the git repository::

git clone
python install

(*optional*) Setup your environment variables

You can used the SDK with an explicit configuration of url instance and token
or you can provide them as environment variables: ``SURFACE_URL`` and

For example on unix-like system:

.. code-block:: shell

$ export SURFACE_URL=http://your_mangrove.ai_url/api
$ export SURFACE_TOKEN='eyJ0eXAiOiJKV1QiLCJhbGciOiJ...'

.. warning:: Mangrove Surface URL have to end with ``/api``.

.. note:: The explicit configuration overrides the implicit one.

.. note:: Token can be provided by the administrator using GUI (see
documentation) or using the SDK (see

Test your installation

You can run tests with the following python lines:

- Test if it is properly installed:

.. code-block:: python

>>> import mangrove_surface
>>> mangrove_surface.__version__

The python SDK is properly connected to your Mangrove Surface:

.. code-block:: python

>>> from mangrove_surface import SurfaceClient
>>> # if environment variables are setup
>>> client = SurfaceClient()
>>> # otherwise
>>> # client = SurfaceClient(url="...", token="...")
>>> client.admin.versions()
'name': 'atlas',
'version': '1.0.0'
}, {
'name': 'license_authority',
'version': u'1.5.0'
}, {
'name': 'dmgr',
'version': '1.0.0'
}, {
'name': 'modeler',
'version': '1.0.0'
}, {
'name': 'exporter',
'version': '1.0.0'
}, {
'name': 'mangrove-surface-sdk',
'version': '1.0.0'

It is well configured! Congratulation!

Let's begin with :doc:`surface`.


Please refer to :doc:`logger` section if you have any unexpected behavior using
the SDK.

Project details

Release history Release notifications

Download files

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

Files for mangrove-surface-sdk, version 1.0.0
Filename, size File type Python version Upload date Hashes
Filename, size mangrove_surface_sdk-1.0.0-py2.py3-none-any.whl (37.7 kB) File type Wheel Python version py2.py3 Upload date Hashes View hashes
Filename, size mangrove-surface-sdk-1.0.0.tar.gz (43.4 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page