Skip to main content

grow-datadog-logs (Python)

Python SDK for Datadog Log Management by Grow Codes. Unofficial and community maintained; "Datadog Log Management" is a trademark of Datadog, Inc. Not affiliated with or endorsed by Datadog.

pip install grow-datadog-logs
import grow_datadog_logs as sdk

# Reads DD_API_KEY, DD_APP_KEY, DD_SITE, DD_SERVICE, DD_ENV, DD_TAGS, GROW_DATADOG_LOGS_* ...
with sdk.DatadogLogsClient.from_env() as client:
    assert client.validate_api_key()
    logs = client.log_client(resource={"service.name": "checkout"})  # batching, gzip
    logs.logger().info("user signed in", {"user": {"id": 42}})
    logs.flush(10)

    query = client.query()  # needs the application key
    page = query.search_logs('service:checkout "signed in"', from_="now-1h", limit=50)
    counts = query.aggregate_logs(sdk.DatadogCompute("count"), [sdk.DatadogGroupBy("status")])
# close() flushed every log client

The async client has the same methods:

import asyncio
from grow_datadog_logs import AsyncDatadogLogsClient

async def main() -> None:
    async with AsyncDatadogLogsClient.from_env() as client:
        print(await client.health())

asyncio.run(main())
  • Python 3.10 or newer, typed (py.typed), httpx based, environment proxies ignored unless configured.
  • Retries with full-jitter backoff and Retry-After, connect/request/total timeouts, cancellation, hooks and a silent-by-default logging logger named grow_datadog_logs.
  • Credentials are wrapped in Secret and never appear in repr(), logs or error messages.
  • grow_datadog_logs.testing ships in-memory fakes and the conformance runner.

Documentation: https://grow-codes-packages.github.io/datadog-logs/ · Source: https://github.com/grow-codes-packages/datadog-logs · Licence: Apache-2.0

Metadata

Release files for grow-datadog-logs 0.1.0

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

Source distribution (sdist)

Source distribution for grow-datadog-logs 0.1.0
File Size Uploaded Provenance Actions
grow_datadog_logs-0.1.0.tar.gz 127.2 kB Without provenance Details for grow_datadog_logs-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for grow-datadog-logs 0.1.0
File Interpreter ABI Platform Actions
grow_datadog_logs-0.1.0-py3-none-any.whl Python 3 none any Details for grow_datadog_logs-0.1.0-py3-none-any.whl

Total release size: 220.4 kB

Release files / grow_datadog_logs-0.1.0.tar.gz

Download URL grow_datadog_logs-0.1.0.tar.gz
Size 127.2 kB
Tags Source
SHA-256 checksum
How to use checksums
7f2ea17a0b2696b46177b94b02ae9cf729e42eb6e586bd22daa0b5c8d637d22d
BLAKE2b-256 checksum
How to use checksums
6703d3c55a29fba1d647e1ba579c305d98fad6704dd15485e33a396b2b1ab210
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / grow_datadog_logs-0.1.0-py3-none-any.whl

Download URL grow_datadog_logs-0.1.0-py3-none-any.whl
Size 93.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2d006939a7909842012fb6636919d6d3e9713b17690ce0598b6ff3a18ce650e4
BLAKE2b-256 checksum
How to use checksums
ba9c02df94901f8aaf20db2ab262dc48adddd4427a6836fa58b85fb946df2f8c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Security for grow-datadog-logs 0.1.0

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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

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