Skip to content
/ pyswrve Public

Unofficial Python wrapper for Swrve Non-Client APIs (Export API and Items API)

License

Notifications You must be signed in to change notification settings

xxblx/pyswrve

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pyswrve

pyswrve is an unofficial Python wrapper for Swrve Non-Client APIs:

Installation

pip install pyswrve

Usage

import pyswrve

swrve = pyswrve.ExportApi(api_key='your_app_key', personal_key='you_personal_key')

You can save api_key and personal_key to config file (default: $HOME/.pyswrve) with save_config method

swrve.save_config()

Try to get DAU stats

from datetime import datetime

start = datetime(2015, 1, 31)
stop = datetime(2015, 2, 1)

swrve.set_dates(start, stop)

swrve.get_kpi('dau', segment='SomeActiveUsers')
[['D-2015-01-31', 19232.00], ['D-2015-02-01', 18762.00]]

About

Unofficial Python wrapper for Swrve Non-Client APIs (Export API and Items API)

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages