Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

GitHub license python badge

SDK Oficial para Python

Está SDK é utilizada para enviar eventos à API de Analytics da Atados

Instalando

pip install @atados/analytics-sdk

Antes de começar, entenda a função track

track(
  /**
   * Tipo: String
   * Use para categorizar esta acao
   * Ex.:
   *   category = 'Apply',
   *   category = 'Notification',
   */
  category: string,
  /**
   * Tipo: String
   * Use para identificar esta ação dentro da categoria
   * Ex.:
   *   label = 'Cancel Apply',
   *   label = 'View Notification',
   */
  label: string,
  /**
   * Use para enriquecer esta ação dentro da categoria
   * Ex.:
   *   action = ID de inscricao
   *   action = { notificationId, notificationKind }
   */
  action: any,
  /**
   * Use este argumento para sobrepor as configurações de userId
   * ou meta
   */
  user_id?: number,
  /**
   * Use este argumento para sobrepor as configurações de meta
   */
  override_meta?: {}
): Promise<void>

Iniciando

from Analytics from analytics

def report_error(error):
  print(error.message)

analytics = Analytics(
  api_url=API_URL,
  api_token=API_TOKEN,
  meta=mock_meta,
  on_error=report_error,
  meta={ 'channelId': 1 }
)
track_result = analytics.track(
  category='Category',
  label='Label',
  action={ 'data': 1 },
  # (Opcional)
  user_id=1,
  # (Opcional)
  sessoin_id=1
)

Utilizando

analytics.track('Category', 'Label', 'Action')

Metadata

Release files for atados-analytics-sdk 0.0.4b1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for atados-analytics-sdk 0.0.4b1
File Size Uploaded Provenance Actions
atados-analytics-sdk-0.0.4b1.tar.gz 4.1 kB Without provenance Details for atados-analytics-sdk-0.0.4b1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for atados-analytics-sdk 0.0.4b1
File Interpreter ABI Platform Actions
atados_analytics_sdk-0.0.4b1-py3-none-any.whl Python 3 none any Details for atados_analytics_sdk-0.0.4b1-py3-none-any.whl

Total release size: 8.8 kB

Release files / atados-analytics-sdk-0.0.4b1.tar.gz

Download URL atados-analytics-sdk-0.0.4b1.tar.gz
Size 4.1 kB
Tags Source
SHA-256 checksum
How to use checksums
25e5e50b4ca68d6b77e5ae9aa9202e7f45679df1a4899c3c9cf9d5efd853e1f0
BLAKE2b-256 checksum
How to use checksums
d3e419e8257e98ce2a1beb204816a2ef1a40b72b5b2c4d317b702fb012d7d24b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5

Release files / atados_analytics_sdk-0.0.4b1-py3-none-any.whl

Download URL atados_analytics_sdk-0.0.4b1-py3-none-any.whl
Size 4.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
842513d81b2e146b2682451a729bce21912065cc62348a24db9400a33adb4766
BLAKE2b-256 checksum
How to use checksums
65e5d6eb05b1e9f27024fea2813b4d05e102a48182749cbf84e15a3b0d95dbd8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5

Security for atados-analytics-sdk 0.0.4b1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page