Skip to main content

Uiza SDK tool

Project description

Python Client for Uiza platform

Introduction

The Uiza API is organized around RESTful standard. Our API has predictable, resource-oriented URLs, and uses HTTP response codes to indicate API errors. JSON is returned by all API responses, including errors, although our API libraries convert responses to appropriate language-specific objects.

Documentation

See the .Uiza API docs v4.

Installation

Supported Python Versions

  • Python 2.7.x. Python 2.7 support will be removed on January 1, 2020.
  • Python 3.x
  • Tested with Python 2.7.11, 3.4, 3.6.8

Install uiza package via pip

Suggestion install this library using pip with virtualenv. Because with virtualenv, it is possible to install this library without:

  • Needing system install permission.
  • Clashing with the installed system dependencies.

On Mac/Linux

pip install virtualenv
virtualenv <your-env>
source <your-env>/bin/activate
<your-env>/bin/pip install uiza

On Windows

pip install virtualenv
virtualenv <your-env>
<your-env>\Scripts\activate
<your-env>\Scripts\pip.exe install uiza

Usage

The first, needing create Uiza connection using app_id and authorization:

import uiza

uiza.authorization = "your-authorization"
uiza.app_id = "your-app-id"

After connection created, this is example search Entity:

import uiza
from uiza.api_resources.entity import Entity
from uiza.exceptions import ServerException

uiza.authorization = "your-authorization"
uiza.app_id = "your-app-id"

try:
    entity_data, _ = Entity().search(keyword='Sample')
except ServerException as e:
    raise e
except Exception as e:
    raise e

...

Next steps, reading the Client Library Documentation to see other available methods on the client.

Unittest

The first, you need install dependencies:

pip install -r requirements.txt

Run unittest:

python -m unittest discover tests

Coverage code:

coverage run -m unittest discover tests
coverage report

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/uizaio/api-wrapper-python.

License

The package is available as open source under the terms of the MIT License.

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

uiza-1.2.0.tar.gz (17.6 kB view details)

Uploaded Source

Built Distribution

uiza-1.2.0-py3-none-any.whl (32.4 kB view details)

Uploaded Python 3

File details

Details for the file uiza-1.2.0.tar.gz.

File metadata

  • Download URL: uiza-1.2.0.tar.gz
  • Upload date:
  • Size: 17.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.5

File hashes

Hashes for uiza-1.2.0.tar.gz
Algorithm Hash digest
SHA256 4a26b9d2cdf45487d17726d96df727a6e3ae0c3baf7c57e641347c1af88228d8
MD5 fdcf222e459bd13c07d60334a646e0e7
BLAKE2b-256 479acd272a00fa786cbfb2a1fd3d0ae90003ee3a8e124e519a4994c842d2f10c

See more details on using hashes here.

File details

Details for the file uiza-1.2.0-py3-none-any.whl.

File metadata

  • Download URL: uiza-1.2.0-py3-none-any.whl
  • Upload date:
  • Size: 32.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.5

File hashes

Hashes for uiza-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e3338bde018bad7775d4c5929a236e9e8ccb89396d5b1685818fd101c9a9a2ed
MD5 330f4da5c75be4973093c0a1aa989148
BLAKE2b-256 f476801061c011d008792a1db18585de6113457e473c6190af95cd123be5ba25

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