Skip to main content

Python sdk for Neokami API

Project description

Neokami Python SDK v0.1.1

This SDK allows you to connect your Python web-applications to the Neokami SDK.

In order to use the SDK, you need to obtain a free API Key from www.neokami.com.

Installation

  • via pip:

    pip install neokami-sdk

    Inside your python project

    import neokami

Usage

Here is a simple usage example for gender & age detection for images:

import os
import neokami

req = neokami.ImageAnalyser()
directory = os.path.dirname(os.path.abspath(__file__))
req.setFile(directory + '/data/team1.jpg')
req.setApiKey('your api key here')
req.setWait(1)
analysis = req.analyse()

#get the results
results = analysis.result()

Chained function calls are also supported for syntax brevity:

import os
import neokami

directory = os.path.dirname(os.path.abspath(__file__))
analysis = neokami.ImageAnalyser().setApiKey(NeokamiTestCredentials.api_key).setFile(directory +'/data/team1.jpg').analyse()

For a full documentation, check out the wiki:

Neokami Wiki

Tests

  • To run the tests, the pytest package is required:

    Install pytest

    pip install -U pytest # or
    easy_install -U pytest
  • Create a NeokamiTestCredentials.python inside the tests/ folder based on the template in NeokamiTestCredentials.python.replace and enter your API Key.

    Repository contributors can apply for api keys to be used inside unit tests at team@neokami.com.

  • The tests can be executed by running:

    py.test

Contributing

Coming soon.

Release History

0.1.1

  • HTTPS connection for the base url

0.1

  • Birth

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

neokami-sdk-0.1.1.tar.gz (160.6 kB view details)

Uploaded Source

File details

Details for the file neokami-sdk-0.1.1.tar.gz.

File metadata

  • Download URL: neokami-sdk-0.1.1.tar.gz
  • Upload date:
  • Size: 160.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for neokami-sdk-0.1.1.tar.gz
Algorithm Hash digest
SHA256 15757b295116d9edc993a94466e666c9d8fa99120c3d64f6431f6960aaf1360c
MD5 577be94903df79677f2b27d8525cff25
BLAKE2b-256 fb8da5d46419b8b45f942aadcc54071b2f94e94746173e0a1467a0cd57d61384

See more details on using hashes here.

Supported by

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