Skip to main content

SDC Client

Project description

FIWARE SDC Python Client
================================

This is a client for Saggita SDC API. This API client has been developed in Python_. This client uses
the OpenStack Keystone service for authorization and service endpoint management.

Environment
-----------

**Prerequisites**

- `Python 2.7`__ or newer
- pip_ 6.0 or newer
- Additional libs that are required before installing dependencies: Python Development Tools (python-devel),
zlib-devel, bzip2-devel, openssl-devel, ncurses-devel, sqlite-devel, gcc
- SDC_
- `OpenStack Keystone service`_ v2 (so far, only Keystone v2 is supported for this client)

__ `Python - Downloads`_


**Installation**

All dependencies has been defined in ``requirements.txt``.
To install the last version of this client, download it from the GIT SDC repository (*master* branch)
and install it, using following command:

::

pip install -e "-e git+https://github.com/telefonicaid/fiware-sdc.git@master#egg=python-sdcclient&subdirectory=python-sdcclient"


Developed operations
---------------------

Following operations are already implemented:

**ProductAndRelease API Resource**

- Get ProductAndRelease


Python API
----------

An example of use of this client is:

::

from sdc_client.client import SDCClient
sdc_client = SDCClient(tenant_id, username, password, region_name, auth_url)

response = sdc_client.getProductAndReleaseResourceClient().get_productandrelease("For testing purposes")
assertTrue(response.ok, "ERROR getting productandreleases {}. Response: {}".format(str(response.content)))


.. REFERENCES

.. _Python: http://www.python.org/
.. _Python - Downloads: https://www.python.org/downloads/
.. _pip: https://pypi.python.org/pypi/pip
.. _SDC: https://github.com/telefonicaid/fiware-sdc
.. _`OpenStack Keystone service`: http://docs.openstack.org/developer/keystone/

Project details


Download files

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

Source Distribution

python-sdcclient-0.0.4.tar.gz (7.6 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page