Skip to content

Releases: xxblx/pyswrve

Release 0.3.0

08 Sep 21:26
Compare
Choose a tag to compare

Added Items API support, see SwrveItemsApi class for details.

Methods

  • get_item_lst - get full list of project items
  • get_item_attrs - get information about one item by uid: parameters (name, item_class, description, etc) and attributes
  • create_item - create new item or update exist one
  • create_items - create a batch of new items

0.2.2

04 Jul 07:34
Compare
Choose a tag to compare

This is minor release.

  • **kwargs added in SwrveExportApi methods get_kpi, get_evt and others that can use additional parameters in requests (see swrve api docs). It allows to use parameters like history and granularity, setup startand stop manually for each request.
  • New argument as_datetime in SwrveExportApi methods get_kpi, get_kpi_dau, get_evt, get_evt_dau, get_payload, get_user_cohorts, get_item_sales, get_item_revenue. When as_datetime=True dates in requests results are converted from string like 'D-2017-01-01' to datetime objects.
  • Minor fixes.

0.2.0

16 May 18:34
Compare
Choose a tag to compare
  • Big refactoring
  • Added detailed docstrings
  • Added tests
  • Class SwrveSession replaced with new classes, base class SwrveApi and specific api-s classes SwrveExportApi, SwrveUserdbApi and SwrveItemsApi
  • Added exception SwrveApiException
  • Dropped garbaged functions and methods, dropped utils.py
  • [SwrveApi] Added region (location) select: us or eu
  • [SwrveApi] Renamed save_defaults => save_config
  • [SwrveExportApi] Dropped get_evt_stat and added new methods get_evt, get_evt_dau, get_payload
  • [SwrveExportApi] Dropped old get_items_salesand added new methods get_item_sales, get_item_revenue
  • [SwrveExportApi] Renamed ename => evt_name in methods with events and payloads
  • [SwrveExportApi] Removed tax arg and added multiplier arg in get_kpi, multiplier applies to revenue, arpu and arppu, like the revenue multiplier in Swrve Dashboard - Setup - Report Settings - Reporting Revenue
  • [SwrveExportApi] Dropped params arg from methods
  • [SwrveExportApi] Added get_user_cohorts method for User Cohorts Export
  • [SwrveExportApi] set_dates accepts datetime or str in %Y-%m-%d format
  • [SwrveExportApi] Added segment arg to get_kpi, get_evt, get_user_cohorts, get_item_sales and get_item_revenue methods
  • [SwrveExportApi] Added currency arg to get_kpi, get_item_sales and get_item_revenue methods
  • etc