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 " 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 All ProductAndRelease from SDC catalog


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

An example of use of this client is:

::

from sdcclient.client import SDCClient
sdc_client = SDCClient(user, password, tenant_id, auth_url, region_name)
productandrelease_client = sdc_client.getProductAndReleaseResourceClient()

allproductreleases = productandrelease_client.get_productandrelease()
assertTrue(response.ok, "ERROR getting productandreleases {}. Response: {}".format(str(allproductreleases.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.10.tar.gz (7.9 kB view details)

Uploaded Source

File details

Details for the file python-sdcclient-0.0.10.tar.gz.

File metadata

File hashes

Hashes for python-sdcclient-0.0.10.tar.gz
Algorithm Hash digest
SHA256 e8ea1194fd99426ea8cfa4fda1594964eae3cb89a5b3ae6072a4075544b8908c
MD5 e13ee20929216bb16aab581386657b92
BLAKE2b-256 3cb4fc666ef9566c34ae1b9decbf73f035419573ecbfc0dc7608f50da0281ff8

See more details on using hashes here.

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