Skip to main content

SDK for ""

Project description


Getting Started


pip install pysimba

Creating Client

from pysimba import Client

client = Client(app_id=os.getenv('CLIENT_APP_ID'), app_secret=os.getenv('CLIENT_APP_SECRET'), service_url=os.getenv('CLIENT_SERVICE_URL'))

Enable Logging

import logging


Useful Utils

from pysimba import get, batch, strptime


Like dict.get but more deep.

get(r, path='simba_insight_wordsdata_get_response.word_data_list.insight_word_data_d_t_o', default=[])


Batch lets you divide an iterable (currently, last positional argument) of work into pieces.

def summary(texts):
    r ='taobao.simba.insight.wordsdata.get', params={
        'bidword_list': ','.join(texts),
        'start_date': '2018-10-01',
        'end_date': '2018-10-07'
    return get(r, path='simba_insight_wordsdata_get_response.word_data_list.insight_word_data_d_t_o', default=[])

texts = [f'连衣裙 {x}' for x in range(200)]
results = summary(texts)


Converting date string to datetime, timezone='Asia/Shanghai'.

strptime('2018-10-16 21:00:50')


r ='taobao.simba.campaigns.get', token='CUSTOMER_TOKEN_HERE')
results = get(r, path='simba_campaigns_get_response.campaigns.campaign')

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

pysimba-1.1.0.tar.gz (3.3 kB view hashes)

Uploaded source

Built Distribution

pysimba-1.1.0-py3-none-any.whl (13.2 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page