{"library":"mparticle","title":"mParticle Python SDK","description":"Python client for the mParticle customer data platform. Currently version 0.16.1. SDK supports event tracking, user management, and consent state. Maintenance cadence is irregular with occasional feature releases.","language":"python","status":"active","last_verified":"Sat May 09","install":{"commands":["pip install mparticle"],"cli":null},"imports":["from mparticle import Batch","from mparticle import MParticle","from mparticle import Event","from mparticle.models import UserIdentities"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"from mparticle import MParticle\nfrom mparticle import Event\nfrom mparticle.models import UserIdentities\n\napi_key = os.environ.get('MPARTICLE_API_KEY', '')\napi_secret = os.environ.get('MPARTICLE_API_SECRET', '')\n\nmp = MParticle(api_key, api_secret)\n\n# Track a simple event\nevent = Event('Test Event', 'navigation')\nmp.log_event(event)\n\n# Track with user identity\nuser_ids = UserIdentities(customer_id='user123')\nmp.log_event(event, user_identities=user_ids)","lang":"python","description":"Initialize mParticle client with API credentials and log a custom event.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}