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.2.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for valued-0.2.2.tar.gz
Algorithm Hash digest
SHA256 4e422de640bdcbd0b16774da63bf06a0c46f5fbda89451fb02777e5d93c187b6
MD5 3615de51f6ab26f06a62ab7f89b957ce
BLAKE2b-256 0b634b1090683c4f3ae7d75ad6638d48032f866a1ee7fcb10f299e5ba6f2d290

See more details on using hashes here.

File details

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

File metadata

  • Download URL: valued-0.2.2-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.3

File hashes

Hashes for valued-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 f15fe44a7b5fa2cc0cabeaa2eccfa5f2a0b59a8d284d2b35de3563726b951b88
MD5 3cc09b8829256df05186cab12e7092bc
BLAKE2b-256 842df641973147ec252eb0411c8cd9738bdd8a384afe77eeb3c6d459ca172dad

See more details on using hashes here.

Supported by

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