Skip to main content
===========================
Mangrove Surface Python SDK
===========================

.. image:: https://circleci.com/gh/mangroveai/mangrove-surface-python-sdk.svg?style=svg
:target: https://circleci.com/gh/mangroveai/mangrove-surface-python-sdk

.. image:: https://readthedocs.org/projects/mangrove-surface-python-sdk/badge/?version=stable
:target: https://mangrove-surface-python-sdk.readthedocs.io/en/latest/?badge=stable
:alt: Documentation Status

.. _documentation: http://mangrove-surface-python-sdk.readthedocs.io/

Documentation
-------------

A complete documentation is available there: documentation_

Installation
------------

Install the python SDK package:

.. code-block:: python

pip install mangrove-surface

or using the git repository::

git clone https://github.com/mangroveai/mangrove-surface-python-sdk
python setup.py 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
``SURFACE_TOKEN``.

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
:meth:`mangrove.Surface._Admin.create_token`:)


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__
'2.0.0'

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`.

Support
-------

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


Metadata

Release files for mangrove-surface-sdk 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mangrove-surface-sdk 1.0.0
File Size Uploaded Provenance Actions
mangrove-surface-sdk-1.0.0.tar.gz 43.4 kB Without provenance Details for mangrove-surface-sdk-1.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for mangrove-surface-sdk 1.0.0
File Interpreter ABI Platform Actions
mangrove_surface_sdk-1.0.0-py2.py3-none-any.whl Python 3, Python 2 none any Details for mangrove_surface_sdk-1.0.0-py2.py3-none-any.whl

Total release size: 81.2 kB

Release files / mangrove-surface-sdk-1.0.0.tar.gz

Download URL mangrove-surface-sdk-1.0.0.tar.gz
Size 43.4 kB
Tags Source
SHA-256 checksum
How to use checksums
7062c95a937c6c773d9fc502ae92f9a33260a1765b0b4f3803188abf1cfa6e6d
BLAKE2b-256 checksum
How to use checksums
d3c52affe373a063eff9d33c392e91baa054071a2a98d49f254f36dd96a09e84
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / mangrove_surface_sdk-1.0.0-py2.py3-none-any.whl

Download URL mangrove_surface_sdk-1.0.0-py2.py3-none-any.whl
Size 37.7 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
606aa510a770b4ba3c0b2ee89af69dc122cc1d8963d5a4f5fa89b990dcc31123
BLAKE2b-256 checksum
How to use checksums
ca0a7162aac06364b497768ffa7aab87443ff758e13008a96971af51f7150b8d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for mangrove-surface-sdk 1.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page