Skip to main content

No project description provided

Project description

Codacy Badge Codacy Badge CI/CD Workflow Code style: black

Valued Python Client

A Python client library for sending events to Valued.

Installation

$ pip install valued

Usage

You can create a valued.Client instance and call action, sync etc directly on the client.

import os
import valued

# Get the token for authentication.
token = os.environ.get("VALUED_TOKEN") # or wherever you store credentials

# Create a client
client = valued.Client(token)

# Record an action
client.action("report.generated", {
  "customer": { "id": 12 },
  "user": { "id": 123 },
  "attributes": { "format": "pdf" }
})

# Sync user data
client.sync_user({
  "id": 123,
  "name": "Josh Kalderimis",
  "email": "josh@valued.app",
  "location": { "country": "NZ", "region": "Wellington" }
})

Contributing

All commits messages should be in the Angluar commit style

  • feat: A new feature.
  • fix: A bug fix.
  • docs: Documentation changes.
  • style: Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc).
  • refactor: A code change that neither fixes a bug nor adds a feature.
  • perf: A code change that improves performance.
  • test: Changes to the test framework.
  • build: Changes to the build process or tools.

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

valued-0.2.1.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

valued-0.2.1-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

Details for the file valued-0.2.1.tar.gz.

File metadata

  • Download URL: valued-0.2.1.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.2

File hashes

Hashes for valued-0.2.1.tar.gz
Algorithm Hash digest
SHA256 b64e1bc55ecea48351cd31e543f0474a0fd24ec5887d938580f4031e45663d07
MD5 f6d09b1a38dbc65379c1cd5b6ec61d11
BLAKE2b-256 c747f7edec7e2587001e597774fef8948565373eda8eabb973be12c9d2f0c68b

See more details on using hashes here.

File details

Details for the file valued-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: valued-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 3.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.2

File hashes

Hashes for valued-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e13a01b17ae32cfbf8cee937f5ba8f147f2dc522a10cf5f57052c93a52974c17
MD5 75f7dfb60ef93ab5738dff24e03383e6
BLAKE2b-256 0615cb6c61d5ef43470383a1c4fe2c0df942edb8feed11a368217ad19455c92c

See more details on using hashes here.

Supported by

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