Skip to content

ElevenPaths/tacyt-sdk-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

96 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TACYT PYTHON SDK

The tacyt sdk allows easy connecting to the Tacyt API.

Requirements and dependencies

  • Python>2.7 or Python>3.6
  • Read API documentation (https://tacyt.elevenpaths.com/help/api).
  • To get the "API ID" and "Secret" (fundamental values for integrating Tacyt in any application) it’s necessary to have an account in Tacyt's website.

Pip should handle all your dependencies automatically.

The project uses:

  • simplejson
  • requests

Installation

You can clone the repository and install it.

git clone [email protected]:ElevenPaths/tacyt-sdk-python.git
pip install tacyt-sdk-python/ 

You can also get it directly with pip:

pip install [email protected]:ElevenPaths/tacyt-sdk-python.git#egg=tacytsdk
pip3 install  [email protected]:ElevenPaths/tacyt-sdk-python.git#egg=tacytsdk

USING THE SDK IN PYTHON

  • Install the sdk in an python environment.
  • Create a TacytClient object with your credentials obtained from Tacyt's website.
from tacyt_sdk.client import TacytClient
from tacyt_sdk.filter_model import Filter
tacyt_client =  TacytClient("APP_ID_HERE", "SECRET_KEY_HERE")
  • Call to Tacyt Server to do searches, compare apps, list tags, create filters or get the RSS info ...
result_search = tacyt_client.search_apps("title:\"5G Speed For Android\"")

list_app_key = ["com.linterna11GooglePlay", "com.sms.kat1aptoideapps"]
result_compare = tacyt_client.compare_apps(list_app_key, "true")

result_tag = tacyt_client.list_tags()

rule = Filter.Rule('1', "contains(permissionName,\"SMS\")")
filter_structure = Filter("Apps SMS Permissions", "Apps which has sms permissions", 1, filter.Filter.PUBLIC_VISIBILITY, rule)
result_filter = tacyt_client.create_filter(filter_structure)

result_get_rss = tacyt_client.get_RSS_info(filter_id)
  • Each Tacyt's API call has a response data where you can check the errors and the data of the response.
all_tags = tacyt_client.list_tags()
all_tags.errors
all_tags.data