Skip to main content

No project description provided

Project description

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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: valued-0.2.0.tar.gz
  • Upload date:
  • Size: 3.6 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.0.tar.gz
Algorithm Hash digest
SHA256 c22ff1c0d95ca74f8e116e9582b9236940105e940aca327254ee0494b1718028
MD5 52120ba97bb99464e78805996cd9a21f
BLAKE2b-256 3dce580a2e9b8028b0adec68abe6b36e377493d0b4b67cfd22ca88f3a253a172

See more details on using hashes here.

File details

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

File metadata

  • Download URL: valued-0.2.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b0ec077596afc84cc78245649b5689ff517f92c1e808176fd400b81bf73a2666
MD5 1bed2aced84019da3e5d28ffaa404173
BLAKE2b-256 df6f9d44386e7ba1d9c5a7aa226b661629beb845ccbad1058e8edf3ed1de7ac4

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