Skip to main content

No project description provided

Project description

ProductAI SDK for Python
========================

.. image:: https://travis-ci.org/MalongTech/productai-python-sdk.svg?branch=master
:target: https://travis-ci.org/MalongTech/productai-python-sdk

安装
----

.. code-block:: bash

$ pip install productai

快速入门
--------

添加图片到图集
~~~~~~~~

.. code-block:: python

from productai import Client

cli = Client(access_key_id, access_key_secret)
api = cli.get_image_set_api(image_set_id)
resp = api.add_image(url, meta)


删除图集中的图片
~~~~~~~

.. code-block:: python

from productai import Client

cli = Client(access_key_id, access_key_secret)
api = cli.get_image_set_api(image_set_id)
with open("images.csv") as f:
resp = api.delete_images(f)


搜索图片
~~~~

.. code-block:: python

from productai import Client

cli = Client(access_key_id, access_key_secret)
api = cli.get_image_search_api(service_id)
resp = api.query(image_url)


使用其他服务
~~~~~~

.. code-block:: python

from productai import Client

cli = Client(access_key_id, access_key_secret)
api = cli.get_api(service_type, service_id)
resp = api.query(image_url)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for productai, version 0.0.1
Filename, size File type Python version Upload date Hashes
Filename, size productai-0.0.1-py2.py3-none-any.whl (3.6 kB) File type Wheel Python version py2.py3 Upload date Hashes View hashes
Filename, size productai-0.0.1.tar.gz (2.8 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page