Skip to main content

The SearchUnify SDK enables developers to easily work with the SearchUnify platform and build scalable solutions with search, analytics, crawlers and more.

Project description

SearchUnify SDK

Overview

The SearchUnify SDK for Python enabled developers to easily work with the SearchUnify platform and build scalable solutions with search, analytics, crawlers and more. You can get started in minutes using PyPI or by downloading the tar file. The SearchUnify SDK for simplifies use of SearchUnify Services by providing a set of libraries that are consistent and familiar for Python developers. It provides support for API lifecycle consideration such as credential management, retries, data marshaling, and serialization. The SearchUnify SDK for Python also supports higher level abstractions for simplified development.

Key Features

  • HTTP/2 Support and pluggable HTTP layer, new programming interfaces seamlessly take advantage of HTTP/2 features and provide new ways to build applications.
  • Nonblocking I/O, the SearchUnify SDK utilizes a new, nonblocking SDK architecture to support true nonblocking I/O. It features truly non blocking asynchronous clients that implement high concurrency across a few threads.

Getting Started

Sign up for SearchUnify, before you begin, you need a SearchUnify account. Please see the oAuth section of the developer guide for information about how to retrieve your SearchUnify credentials.

Installation

SDK requires Python 3+ and pip to run. The recommended way to use the SearchUnify SDK for Python in your project is to consume it from PyPI.

pip3 install searchunify

Execution

Initiate SearchUnify Python SDK on Server. Using the SDK, you can route search requests. To start using, initialize the SDK with your URL and API key.

from searchunify import Searchunify

username = "changeme"
password = "changeme"
clientId = "changeme"
secrets = "changeme"
instance = "changeme"

client =  Searchunify(instance=instance, username=username, password=password, client_id=clientId, client_secret=secrets)

startDate       =   "changeme"
endDate         =   "changeme"
searchClientId  =   "changeme"
data          =   client.get_tiles_data(startDate=startDate, endDate=endDate, searchClientId=searchClientId)
print("The tile data response: ", data)

The access token will expire after 4 hours and you need to refresh that.

result = client.refresh_token()

Documentation

Please refer to the SearchUnify developer guide to use the SDK. https://docs.searchunify.com/Content/Developer-Guides/SDKs-Python.htm

The documentation is in review and might contain bugs🐞, we will update the link on https://docs.searchunify.com once its's final.

License

MIT

© Powered by SearchUnify!

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

searchunify-1.0.7.tar.gz (12.5 kB view details)

Uploaded Source

Built Distribution

searchunify-1.0.7-py3-none-any.whl (16.9 kB view details)

Uploaded Python 3

File details

Details for the file searchunify-1.0.7.tar.gz.

File metadata

  • Download URL: searchunify-1.0.7.tar.gz
  • Upload date:
  • Size: 12.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.9

File hashes

Hashes for searchunify-1.0.7.tar.gz
Algorithm Hash digest
SHA256 3e6dce4417707737ff0bf377d32dc709381973e87e9e1e70a078d33f48ac1458
MD5 78e9aa4a0508b1e624b4a3c97d84a932
BLAKE2b-256 6024afdb054e8047d51e52da45a5ead98a50eb643cc837e372c0795c21a48973

See more details on using hashes here.

File details

Details for the file searchunify-1.0.7-py3-none-any.whl.

File metadata

  • Download URL: searchunify-1.0.7-py3-none-any.whl
  • Upload date:
  • Size: 16.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.9

File hashes

Hashes for searchunify-1.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 bb88b1bd1ade901a1daf3a6a2bc76f4a3051bbe28dca196edcc8feaf3f21af27
MD5 461e8cd8403ccd4864f7889d310194a5
BLAKE2b-256 bf4a2b1b09a07249f439aa8cac565d71bc3105ff30b307012b214d3838ce759a

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