Skip to main content

No project description provided

Project description

Snowplow Signals SDK

The Snowplow Signals SDK is a Python SDK that enables you to interact with the Snowplow Signals Profile API. It provides a simple interface to define, deploy, and retrieve user attributes for personalization.

Installation

pip install snowplow-signals

Quickstart

from snowplow_signals import Signals, Attribute, Event, View, session_entity

# Initialize the SDK
signals = Signals(
    api_url="API_URL",
    api_key="API_KEY",
    api_key_id="API_KEY_ID",
    org_id="ORG_ID",
)

# Define an attribute
page_view_count = Attribute(
    name="page_view_count",
    type="int32",
    events=[
        Event(
            vendor="com.snowplowanalytics.snowplow",
            name="page_view",
            version="1-0-0",
        )
    ],
    aggregation="counter"
)

# Create and deploy a view
view = View(
    name="my_view",
    version=1,
    entity=session_entity,
    attributes=[page_view_count],
)
signals.apply([view])

# Retrieve attributes
response = signals.get_online_attributes(
    source=view,
    identifiers="abc-123",
)

Key Features

  • Define attributes based on Snowplow events
  • Create views to group related attributes
  • Deploy views to the Profile API
  • Retrieve real-time user attributes

Release Process

To make a new release:

  1. Prepare the changelog: Create a commit (e.g., "Prepare for release") that updates the CHANGELOG.md with all notable changes for the new version.
  2. Create a release PR: Open a pull request to the main branch with your changelog and any other release-related changes.
  3. Merge the PR: Merge the release PR using a merge commit. Do not use squash or rebase.
  4. Run the Release workflow: Trigger the "Release" workflow in GitHub Actions to publish the new version to PyPI.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

snowplow_signals-0.0.4.tar.gz (15.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

snowplow_signals-0.0.4-py3-none-any.whl (20.6 kB view details)

Uploaded Python 3

File details

Details for the file snowplow_signals-0.0.4.tar.gz.

File metadata

  • Download URL: snowplow_signals-0.0.4.tar.gz
  • Upload date:
  • Size: 15.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.2 CPython/3.11.11 Linux/6.8.0-1021-azure

File hashes

Hashes for snowplow_signals-0.0.4.tar.gz
Algorithm Hash digest
SHA256 4572d8a0b02c8b59eaaa17bc59914dd48b87e13919de22cbebb1850029268522
MD5 30c09305704da8fe21175d85d9f7fa7b
BLAKE2b-256 6e897dfd369da899025c89bdb40491389c082c656048b63a398a79e2efa11887

See more details on using hashes here.

File details

Details for the file snowplow_signals-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: snowplow_signals-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 20.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.2 CPython/3.11.11 Linux/6.8.0-1021-azure

File hashes

Hashes for snowplow_signals-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 b63bcd3256597448b9c72629eef2f316711be29e8a7194b232f3f19db3b071c5
MD5 21e71b5de46336e3f0df90471913f134
BLAKE2b-256 0e5883c87fcf4e08838dba5ffe5f014ee662be6399dfa03d53cb5f00065eeda8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page