Skip to content

Releases: mParticle/mparticle-python-sdk

Update version to 0.10.8

02 Jan 20:24
Compare
Choose a tag to compare
  • Add support for Data Planning
  • Add Travis Support

Update version to 0.10.7

02 Jan 20:23
Compare
Choose a tag to compare
  • Add GDPR Consent State to SDK

Version 0.10.6

18 Mar 20:26
Compare
Choose a tag to compare

This release adds support for sending data with only MPID (mParticle user id) or DAS (device application stamp) as identities.

Note: DAS is set using the name mp_deviceid.

Version 0.10.5

25 Oct 22:41
389aa7d
Compare
Choose a tag to compare

This release replaces the previous release which incorrectly included underscores in the new other2, other3, and other4 user identity types.

You can set these new identities as follows:

identities = mparticle.UserIdentities()
identities.other2 = 'foo other identity 2'
batch.user_identities = identities

Version 0.10.4

24 Oct 20:26
Compare
Choose a tag to compare
  • New: Added support for additional user identities, other_2, other_3, other_4
  • Fixed: Restored support for Python 2.7

Version 0.10.0

19 Apr 21:55
Compare
Choose a tag to compare

This release adds some client-side field validation:

  • IDFA, IDFV, and AAID must all be valid/parseable as UUID's
  • the custom_attributes property of AppEvent, ScreenViewEvent, and CommerceEvent must be str, int, bool, or float. They cannot be lists.

The SDK will throw a ValueError if any of the cases above are violated.

Version 0.9.4

08 Dec 15:00
Compare
Choose a tag to compare

SQS Upload Support

This release adds support for SQS uploading in via the AWS Boto3 client:

  • api_key has been added as a property of the Batch object, which is necessary with SQS authentication
  • ApiClient.sanitize_for_serialization is now a class method that can be called from anywhere for easy serialization of Batch objects into JSON-based SQS messages.

(Read here to learn how to upload data to mParticle via Amazon SQS](https://github.com/mParticle/mparticle-python-sdk/wiki/SQS-Upload)

Version 0.9.3

08 Dec 14:56
Compare
Choose a tag to compare

This release adds the connection_pool_size property to the Configuration object, allowing you to specify the maximum number of simultaneous connections to maintain.

configuration = mparticle.Configuration()
configuration.api_key = 'REPLACE WITH API KEY'
configuration.api_secret = 'REPLACE WITH API SECRET'

# Raise the connection pool size if necessary (defaults to 1)
configuration.connection_pool_size = 50

api_instance = mparticle.EventsApi(configuration)

Version 0.9.2

08 Dec 14:53
Compare
Choose a tag to compare

When being invoked asynchronously, the API client now handles exceptions and passes them to the given callback. For example:

def my_callback(response):
    if type(response) is mparticle.rest.ApiException:
        print 'An error occurred: ' + str(response)
    else:
        #successful uploads will yield an HTTP 202 response and no body
        print response

api_instance.upload_events(batch, my_callback)

Version 0.9.1

08 Dec 14:49
Compare
Choose a tag to compare
  • App/Custom events now default to a custom_event_type of 'other'.