Releases: xxblx/pyswrve
Releases · xxblx/pyswrve
Release 0.3.0
Added Items API support, see SwrveItemsApi
class for details.
Methods
get_item_lst
- get full list of project itemsget_item_attrs
- get information about one item by uid: parameters (name, item_class, description, etc) and attributescreate_item
- create new item or update exist onecreate_items
- create a batch of new items
0.2.2
This is minor release.
**kwargs
added inSwrveExportApi
methodsget_kpi
,get_evt
and others that can use additional parameters in requests (see swrve api docs). It allows to use parameters likehistory
andgranularity
, setupstart
andstop
manually for each request.- New argument
as_datetime
inSwrveExportApi
methodsget_kpi
,get_kpi_dau
,get_evt
,get_evt_dau
,get_payload
,get_user_cohorts
,get_item_sales
,get_item_revenue
. Whenas_datetime=True
dates in requests results are converted from string like 'D-2017-01-01' to datetime objects. - Minor fixes.
0.2.0
- Big refactoring
- Added detailed docstrings
- Added tests
- Class
SwrveSession
replaced with new classes, base classSwrveApi
and specific api-s classesSwrveExportApi
,SwrveUserdbApi
andSwrveItemsApi
- Added exception
SwrveApiException
- Dropped garbaged functions and methods, dropped utils.py
- [
SwrveApi
] Added region (location) select:us
oreu
- [
SwrveApi
] Renamedsave_defaults
=>save_config
- [
SwrveExportApi
] Droppedget_evt_stat
and added new methodsget_evt
,get_evt_dau
,get_payload
- [
SwrveExportApi
] Dropped oldget_items_sales
and added new methodsget_item_sales
,get_item_revenue
- [
SwrveExportApi
] Renamedename
=>evt_name
in methods with events and payloads - [
SwrveExportApi
] Removedtax
arg and addedmultiplier
arg inget_kpi
,multiplier
applies to revenue, arpu and arppu, like the revenue multiplier in Swrve Dashboard - Setup - Report Settings - Reporting Revenue - [
SwrveExportApi
] Droppedparams
arg from methods - [
SwrveExportApi
] Addedget_user_cohorts
method for User Cohorts Export - [
SwrveExportApi
]set_dates
acceptsdatetime
orstr
in%Y-%m-%d
format - [
SwrveExportApi
] Addedsegment
arg toget_kpi
,get_evt
,get_user_cohorts
,get_item_sales
andget_item_revenue
methods - [
SwrveExportApi
] Addedcurrency
arg toget_kpi
,get_item_sales
andget_item_revenue
methods - etc