Skip to main content

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.

Metadata

Release files for uiza 1.2.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 uiza 1.2.0
File Size Uploaded
uiza-1.2.0.tar.gz 17.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for uiza 1.2.0
File Interpreter ABI Platform
uiza-1.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 49.9 kB

Release files / uiza-1.2.0.tar.gz

Download URL uiza-1.2.0.tar.gz
Size 17.6 kB
Tags Source
SHA-256 checksum
How to use checksums
4a26b9d2cdf45487d17726d96df727a6e3ae0c3baf7c57e641347c1af88228d8
BLAKE2b-256 checksum
How to use checksums
479acd272a00fa786cbfb2a1fd3d0ae90003ee3a8e124e519a4994c842d2f10c
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / uiza-1.2.0-py3-none-any.whl

Download URL uiza-1.2.0-py3-none-any.whl
Size 32.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e3338bde018bad7775d4c5929a236e9e8ccb89396d5b1685818fd101c9a9a2ed
BLAKE2b-256 checksum
How to use checksums
f476801061c011d008792a1db18585de6113457e473c6190af95cd123be5ba25
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

1.2.0 This release

2 release files

1.1.2

2 release files

1.1.1

2 release files

1.1.0

3 release files

1.0.1

2 release files

1.0.0

2 release files

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